0
Would someone like to tell me how I can change an html tag with angular, like if I added an ng-model tag and from that I could change the properties of the tag like class, id, text and etc...
0
Would someone like to tell me how I can change an html tag with angular, like if I added an ng-model tag and from that I could change the properties of the tag like class, id, text and etc...
4
You can create your own directive for this. See the angular documentation(https://docs.angularjs.org/guide/directive), the following section 'Creating a Directive that Manipulates the DOM'
This article can help you too. (http://fdietz.github.io/recipes-with-angular-js/directives/changing-the-dom-in-response-to-user-actions.html)
Browser other questions tagged javascript angularjs
You are not signed in. Login or sign up in order to post.
The
ng-switch
help? http://plnkr.co/edit/VykyIo– Lollipop