2. WHOAMI
Tom Wilson
â Lead Technologist JRS
â <3 JavaScript
â <3 io.js/node
â <3 couchdb/pouchdb
â <3 angularjs/mercury
3. Intro to AngularJS
â What is AngularJS
â Why should I use AngularJS?
â How should I get started?
4. What is AngularJS?
AngularJS is a JavaScript Framework that
abstracts away the direct manipulation of the
DOM using two-way data-binding and
leverages html templates and dependency
injection to create applications.
5. Why AngularJS
â Simpler code
â Easier manage DRY Code
â Easier to Unit Test
â Flexible Organization
â Easy to integrate with other JS Libs
49. $http
Is a service to make ajax calls in AngularJS
.controller(âfooCtrlâ, function($scope, $http) {
$http.get(â/someurlâ)
.then(function(res) {
$scope.widgets = res
})
})
50. $http
Is a service to make ajax calls in AngularJS
.controller(âfooCtrlâ, function($scope, $http) {
$http.post(â/someurlâ, { foo: âbarâ})
.then(function(res) {
$scope.widgets = res
})
})