AngularJS Question:
Download Job Interview Questions and Answers PDF
On what steps for the compilation process of HTML happens?
Answer:
Compilation of HTML process occurs in following ways:
► Using the standard browser API, first the HTML is parsed into DOM
► By using the call to the $compile () method, compilation of the DOM is performed. The method traverses the DOM and matches the directives.
► Link the template with scope by calling the linking function returned from the previous step
► Using the standard browser API, first the HTML is parsed into DOM
► By using the call to the $compile () method, compilation of the DOM is performed. The method traverses the DOM and matches the directives.
► Link the template with scope by calling the linking function returned from the previous step
Download AngularJS Interview Questions And Answers
PDF
Previous Question | Next Question |
What is string interpolation in angular.js? | What is linking function? |