4. Why Angular?
● Two-way data binding
● Declarative style. Seems like HTML on
steroids.
● Good collection of built-in components.
● Well testable
5. Easy to start
● Tutorial for beginners
● Good enough documentation
● Big and fast-growing community.
6. Important elements of powerful apps
● ng-repeat="item in collection"
● ng-include="expression"
● $resource
7. Problems we faced.
● Convert data, got from server before using
it.
● No if – else in Views
● Rendering trees.
● Dark side of two-way binding
● How to bind Angular to Rails app?
● Using jQuery and jQueryUI in AngularJS app
8. Convert data, got from server before
using it
Just do it in request's callback.
$scope.questions = Question.query(
{screener_id:$scope.screener.id},
function(){
Some convert actions
...
$scope.questions = converted_data;
}
);
9. No if – else in Views
● ng-show | ng-hide – for simple cases
● ng-include=”expression” - for choosing what
partial to render
14. What is in a result?
● Angular is a real friend for fast developing real
WEB 3.0 applications.
● Most of problems are already solved, see docs and
Google+
● Most of problems can be solved thinking Angular
way.