PatrickJS/NG6-starter

Update ui-router legacy import

bernardocs opened this issue · 1 comments

Hey guys!

It came to my attention (way back, actually) that the import done on the generator/component/temp.js file, which serve as scaffold to generate new components, is using a outdated module name.

Refer to this: angular-ui/ui-router/CHANGELOG.md

For the sake of keeping the project updated, changing it from:

import uiRouter from 'angular-ui-router';

to

import uiRouter from '@uirouter/angularjs';

would be right.

The reason I'm opening a issue for it, instead of a PR, is to discuss the impact of this change before going for it.

Hey @bernardocs I am using ui.router version 1.0.8 in a large scale application ( more than 100K LOC ) and from my experience I can say that latest ui.router is very powerful but documentation is bit weak. Other than that it's wise decision to update the project to use latest version of ui.router