Angular JS & MVC Architecture
Angular JS & MVC Architecture
ng-init Directive is used to initialize AngularJS Application data. It defines the initial
value for an AngularJS application and assigns values to the variables. The ng-init
directive defines initial values and variables for an AngularJS application.
ng-repeat Directive :The ng-repeat directive repeats HTML elements for each item
in a collection. In the following example, we iterate over the array of countries.
ng-blur It specifies a behavior on blur events. ng-submit It specifies expressions to run on
ng-click It specifies an expression to evaluate when an onsubmit events.
element is being clicked. ng-switch It specifies a condition that will be
ng-copy It specifies a behavior on copy events. used to show/hide child elements.
ng-value It specifies the value of an input element.
ng-cut It specifies a behavior on cut events.
ng-disabled It specifies if an element is
ng-dblclick It specifies a behavior on double-
disabled or not.
click events.
ng-form It specifies an html form to inherit controls
ng-if It removes the html element if a condition is
from.
false.
ng-mousedown It specifies a behavior on
ng-include It includes html in an application.
mousedown events.
ng-list It converts text into a list (array).
ng-selected It specifies the selected attribute of
an element.
ng-src It specifies the src attribute for the <img>
element.
EXPRESSION
Using numbers
<p>Marks(Math): {{marks[3]}}</p>
FILTERS : |
Sr.No. Name & Description
uppercase
1
converts a text to upper case text.
lowercase
2
converts a text to lower case text.
currency
3
formats text in a currency format.
filter
4
filter the array to a subset of it based on provided criteria.
orderby
5
orders the array based on provided criteria.
FORMS AND ITS VALIDATIONS