SamVerschueren / angular2-polyfill

Angular2 polyfill for Angular1
MIT License
29 stars 3 forks source link

State is already defined #3

Closed SamVerschueren closed 8 years ago

SamVerschueren commented 8 years ago

When defining routes on a per component basis, an error will be thrown indicating that the state was already defined. This is because of this line. It always iterates over all the states (including the ones previously declared). It should only iterate over the new states in the current component being bootstrapped.