Monday, January 18, 2016

Can I set an Angular directive template to a HTML web page?

Yes, you can set template to page directly by using “templateUrl” property of the directive as shown in the code snippet below.
directive.templateUrl = "/templates/footer.html";

No comments:

Post a Comment