generate module with routing in angular
ng g m [ModuleName] --routing
generate module with routing in angular
ng g m [ModuleName] --routing
call a function whenever routerlink is clicke angular
<a class="nav-link" [routerLink]="['/home']" (click)="doSomeLogic()">Home</a>
ng new module w route
// Use this command to create a lazy-loaded feature module with routing, along with its stub component.
ng generate module <MODULE_NAME> --route <ROUTE> --module app.module
create module with routing by angular
ng g module admin --routing
how to create app.routing.module.ts in angular 6
ng generate module app-routing --flat --module=app
angular routing example
content_copy
ng generate component first
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us