Level4
When we need to print multiple product name and product price, we want to reuse these 2 lines of code
If you want to pass in a string, use "" Inside contains '. Using Ng-include
After loading the page, use Ajax call to get the page with the Include
---------------------------Split Line-----------------------------
A better-to-include HTML template is to create custom directive
Use directive to replace ng-include!
Derective allows you to express behavior of your application!
Use custom directive to express behavior example:
Expressivness is the real power of using custom directive
Several kinds of custom directives:
How can we define custom directive?
The second part was an anonymous function which return a directive Defination object
Note that the dash in HTML translates to CamelCase in javascript!
Element directive
Attribute directive
Attribute Directive vs Element Directive
Angular make people easier to understand the behavior in HTML pages
Full stack Old driver Roadmap note--------(4) Angular JS