Q:

What is wrong with angular component?

What is wrong with angular component ?

A:

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: '='
  }
});

