以上配置資訊告訴Angular 路由,應用程式的根目錄是 / 。 Using the router. 要使用路由,我們需要在AppModule 模組中,匯入RouterModule。具體如下:
確定! 回上一頁