Closed cgatian closed 7 years ago
This snippet should probably also export
the routes
array.
Fixed in v4.2.4
Wow, that was.... fast 🚀
I took a look and found the same bug in two other places :( So decided to fix it right away.
If you plan on submitting a pull request just add a note in the description sand I'll leave them alone.
Thanks again!
👍
@BeastCode Suggestion to rename the exported module from FeatureModule
to FeatureRoutingModule
This would align with the convention used in the docs
@NgModule({
imports: [RouterModule.forChild(routes)]
exports: [RouterModule]
})
export class FeatureModule {}
Nice catch! fixed in v4.2.5
snippet:
ng-router
issue: Extra parenethsis at he end of the routes array
Generated Code
Last line has
]);
which should be];