Getting error with AngularJS 1.4 NewRouter and Component Names -


trying work angular 1.4's new router , ng-link , coming across naming issue don't understand.

i have component i'd name 'statorders'. i've named folder, .html, , .js files same way - controllers etc. tried consistent in naming/casing. have setup route follows

{path: '/statorders', component: 'statorders' } 

i using ng-link go component such:

<a ng-link="statorders()"/> 

i getting error cannot find 'stat-orders'. looking folder , js file naming.

i can work if make entire name lower case, i'd rather not that. have tried number of things trying figure out. guidance appreciated.

i have read normalization of directive names, cannot see how apply this particular scenario.

this lets override default conventions , configure how controllers named , templates loaded from. https://angular.github.io/router/$componentloaderprovider

an example out in wild. http://chariotsolutions.com/blog/post/new-angular-router-naming-conventions/