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
Tag: angular-template
Angular: conditional class with *ngClass
What is wrong with my Angular code? I am getting the following error: Cannot read property ‘remove’ of undefined at BrowserDomAdapter.removeClass Answer Angular version 2+ provides several ways to add classes conditionally: type one type two and multiple option: type three type four You can find these examples on the documentation page