On Github AngularJSHyderabad / AngularIntro
Srini Kusunam / @skusunam / GithubVenkata Kotaru (Keerti) / @keerti / Github
It is a web application that fits on a single web page with the goal of providing a more fluid user experience akin to a desktop application.
AngularJS is a client-side MVC framework written in JavaScript. It runs in a web browser and greatly helps us (developers) to write modern, single-page, AJAX-style web applications.
Why would you use angular over something else?
Backbone, Knockout, Ember, Meteor
Automatically synchronize values between Model and View.
The DOM is your template
Code dependencies are automatically injected where they are needed.
Teach your browser new tricks and you can create your own DSL.
Makes it much easier to unit test different parts (Karma).
// New Module angular.module('demo/controllers',[]); angular.module('demo/directives',[]); // Dependencies angular.module('demo', ['demo/controllers', 'demo/directives']);
angular.module('demo/controllers') .controller('FooCtrl', function($scope){ $scope.foo = 'bar'; $scope.alert = function(){ $scope.foo = 'baz'; }; $scope.$watch('foo', function (value, old, scope) { scope.fooToo = value; }); }) .controller('BarCtrl', function($scope, $resource){...});
angular.bootstrap(document, 'demo');
<body ng-app="demo"> ... </body>
angular.module('demo') .service('cow', function(){ return { moo: function(){ alert('Moooo'); } }; }) .service('farm', function(cow){ cow.moo(); });
This is where the magic happens
Batarang: Chrome Extension
AngularJSHyderabad Github – @nghyderabad (Twitter handle) –