[Solved] What is wrong with angular component?


second argument should be an object literal. see example https://docs.angularjs.org/guide/component

angular.module('heroApp').component('heroDetail', {
  templateUrl: 'heroDetail.html',
  controller: HeroDetailController,
  bindings: {
    hero: '='
  }
});

2

solved What is wrong with angular component?