bower install ng-restart(1) Add ng-restart.js to your main file (index.html)
(2) Set ngRestart as a dependency in your module
var myapp = angular.module('myapp', ['ngRestart']);a. add ng-controller into your index.html
b. register the controller into your angular app
a. skill - one of your skills, for example: "html"
b. level - your level of expertise in that skill
represented in percentage, for example: "80%"
c. color - choose a color to represent the level
of your skill, for example: "#8736C9%"
a. add the attribute - skills to the element and attach the
array of objects you created on the scope
a. add css to the generated divs
You can check out this live example here: http://codepen.io/anon/pen/WbGeQg
a. add an element directive with your name to your index.html
b. add the attribute - name to the element and attach the your name to it
a. the directive should except only elements
b. the directive should replace your element
c. the directive should have link function with
the arguments: scope, element and attributes
a. add to the scope a name property
b. call to the method getBinary from the $restart service
c. pass your attribute name to the method getBinary
a. add css to the div of your name
You can check out this live example here: http://codepen.io/anon/pen/yyaBVW
a. add ng-controller into your index.html
b. register the controller into your angular app
a. make a GET request to the api and attach the output value to the scope
the url to the api documentation : http://www.icndb.com/api/
b. get 5 jokes from the api
a. add the attribute - jokes to the element and attach the
array of jokes
a. add css to the generated divs
You can check out this live example here: http://codepen.io/anon/pen/OPRWVq
a. add ng-controller into your index.html
b. register the controller into your angular app
c. add array of names and attach it to the scope
a. add an input with an ng-model
b. create div with ng-repeat and loop
over the names array from the controller
c. filter the names using the input value
a. create a filter function on your app module
b. the filter should return a perfect match,
example: type "yo" in the input, should retrieve
only the names that starts with "yo".
a. add the directive to add awesomeness to
the names by clicking on the div
a. add css to the generated divs
You can check out this live example here: http://codepen.io/anon/pen/WbGKJQ