Angular
Difference between Angulr Js and Angular
AngularJs - versions 1 and less than 2
Angular - Version 2 & onwards
Angular - Version 2 & onwards
Directive: (SAC):Angular syntax in Html.
- Structural (change structure of html DOM) (eg. *ngIf, *ngfor)
- Attribute (change the appearance & behaviour of HTML Elements)
- Component (directive with template, like user control)
Binding:
- Property binding - [ ] -component to view
- Event binding - ( ) view to component
- Expression binding (interpolation) - {{}} component to view
- Two way binding - [ ( ) ]
template variable- variable in html (template) starts with #
eg. <input type="text" #email (key.enter)="onEnter(email.value)" /> //define function onEnter(email.value), the argument in function is same as #email in html
Comments
Post a Comment