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
})
})