IITK New York Office Internship Day 8 - Angular JS
May 21, 2016
Started with the tutorial on AngularJS at W3school. I read the following topics :
- AngularJS Expressions
- They can be written inside double braces.
- They can also be written inside a directive:
ng-bind="expression"
. - They can contain literals, operators, and variables.
- AngularJS Modules
- The module is a container for the different parts of an application.
- The module is a container for the application controllers.
- We write module as :
var app = angular.module("myApp", []);
- AngularJS Directives are extended HTML attributes with the prefix
ng-
. Example:ng-app
directive initializes an AngularJS application. - AngularJS ng-model Directive binds the value of HTML controls (input, select, textarea) to application data.
- AngularJS Data Binding is the synchronization between the model and the view.
- AngularJS Controllers control the data of AngularJS application.
- AngularJS Scope is the binding part between the HTML (view) and the JavaScript (controller). It is also available for both the view and the controller.
- AngularJS Filters to transform data. They can be added to expressions by using the pipe character
|
, followed by a filter. - AngularJS Services
Written on May 22, 2016