Skip to content
Advertisement

Tag: angularjs-directive

Multiple directives asking for template on

Error: [$compile:multidir] Multiple directives [statbox, statbox] asking for template on: (On console) Inside index.html Inside dashboard.module.js Inside dashboard.component.js Inside statbox.component.js And inside app.js Inside dashboard.template.html Inside statbox.template.html What am I doing wrong and why do I get this multiple directives error? Whenever I comment out <script src=”js/dashboard/statbox.component.js”></script> from the index.html everything works but statbox controller is not getting loaded. (Full

AngularJS – Blur + Changed?

What is the easiest way to combine ng-changed and ng-blur? I’ve found this post: How to let ng-model not update immediately? However, this does no longer work in angluar 1.2+ Is there any way to achieve the same behavior? I guess I have to store a copy of the old value myself and compare the new value to that on

Advertisement