0

Based on this video@ng-vegas: New Angular Router: Bridging the Gap Between 1.x and 2, the presenter said totally 3 ways to define controller and template in new router. 3rd one(starting at 8:40) allow us to define custom template url inside a controller like below:

ArticleController.$templateUrl = 'whatever.html';
ArticleController() {...}

However, I tried, but with no luck. So has the 3rd way disappeared or there is another grammar?

Ron
  • 6,037
  • 4
  • 33
  • 52
  • Have you setted the Component Mapper Config, like the video shown? – Francisco Aug 31 '15 at 14:32
  • I know that, but if doing that way, all the templates have to follow certain unified pattern which may be not existed. – Ron Aug 31 '15 at 23:43

0 Answers0