What are differences between templateurl and template?



What are differences between templateurl and template?..

Answer / Ajay Kumar Maurya

TemplateUrl is used to specify an external HTML file that contains the template for a component or directive. Template, on the other hand, is used to inline the HTML template within the TypeScript file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Explain validations done in angularjs?

1 Answers  


What is the possible order of lifecycle hooks in angular?

1 Answers  


Difference betweek javascript, jquery and angularjs?

1 Answers  


How to make Http get request from AngularJS with an example?

1 Answers  


What are the angular modules?

1 Answers  


What is two-way bindings?

1 Answers  


What is ng-app, ng-init, and ng-model?

1 Answers  


What is the urlsegment interface in angular 7?

1 Answers  


What are observables in angular?

1 Answers  


What is activatedroute snapshot?

1 Answers  


What is the difference between observable and promises?

1 Answers  


What does a Subscribe method do in Angular 4?

1 Answers  


Categories