Bir düğmeyi tıklatarak başka bir sayfaya gitmeye çalışıyorum ancak çalışma başarısız oluyor. Sorun ne olabilirdi. Şimdi açısal 2 öğreniyorum ve şimdi benim için biraz zor.Köşeli bir düğme ile başka bir sayfaya gidin 2
//Routes/Path in a folder call AdminBoard
export const AdminRoutes: Routes =[
{
path: 'dashboard',
component: AdminComponent,
children: [
{path: '', redirectTo: 'Home'},
{path: 'Home', component: HomeComponent},
{path: 'Service', component: ServiceComponent},
{path: 'Service/Sign_in', component:CustomerComponent}
]
}
];
//Button is also in a different folder. Click button to navigate to this page {path: 'Service/Sign_in', component:CustomerComponent}
<button class="btn btn-success pull-right" ><a routerLink="/Service/Sign_in"> Add Customer</a></button>
Olası kopya [Açılışta 2 Köşeli tıklama] (http://stackoverflow.com/questions/37252146/angular-2-redirect-on-click) – Habeeb
şunun gibi bir şey deneyin: '' –