Dynamically attach directive name to html tag using angularjs -


is possible attach directive name html tag using user defined function defined in controller.

assume directive name test-val
in controller $scope.test = function() { // attach directive name html div [id=attch] }

on trigger of function test() div should attach directive name. possible?


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -