I have the following HTML:
Happened to me when I was having two components with the same name (copy paste error):
For my coffeescript, but easy to happen in pure angular:
component1.coffee
appModule.component('name', {
templateUrl: '/public/partials/html1.html',
controller: 'controler1',
bindings: {
somebindings: '<'
}
});
component2.coffee
appModule.component('name', {
templateUrl: '/public/partials/html2.html',
controller: 'controler2',
bindings: {
somebindings: '<'
}
});
Conclusion: "name" has to be unique in whole app.