<mat-form-field class="example-full-width"> <input matInput placeholder="Enter name" [(ngModel)]="partname" > </mat-form-field>
navbar.component.ts export class NavBarComponent implements OnInit { public parts = [ { id: 1, partname: 'hummer', }, { id: 2, partname: 'Transistor', }, { id: 3, partname: 'Air', } ]; ngOnInit() { }
app-routing.module.ts represent routing as following : const routes: Routes = [ { path: 'overview', component: OverviewComponent }, { path: '' , redirectTo: '/overview', pathMatch: 'full'}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)