angular / router

The Angular 1 Component Router
MIT License
665 stars 135 forks source link

Following Getting Started instructions leads to AppController.$routeConfig is not a function #348

Closed sarod closed 3 years ago

sarod commented 9 years ago

The original code ̀js AppController.$routeConfig([ {path: '/', component: 'home' } ]); ̀ was failing at runtime with $routeConfig is not a function. It seems there was a confusion between $router.config function and controller.$routeConfig.

Review on Reviewable