GE Interview Question

how to use custom directives in HTML page

Interview Answer

Anonymous

May 10, 2018

Register a directive in angularjs module as shown below var app = Angular. module(app, []) ; app. directive ("directive _name", function () { return { restrict :E, template : "sample text here" } }) ; In html, use directive name as a normal tag

1