Skip to content

Latest commit

 

History

History

t3_AngularJS_Modules

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Learn_AngularJS

Learn_AngularJS

  • An AngularJS module defines an application.

  • The module is a container for the different parts of an application.

  • The module is a container for the application controllers.

  • Controllers always belong to a module.

Define a variable

  • Define in controller $scope.txt_color = "yellow";

Assign a variable to a input tag

  • Use ng-model attr

t1.html - Adding a Controller

t2.html - Adding a Directive

https://www.w3schools.com/angular/angular_ref_directives.asp

Tôi hông có hỉu :v


https://www.w3schools.com/angular/