routerlink

    6熱度

    1回答

    我在angular 4中有routerLinkActive的問題。我有這種設置。 export const FruitRoutes = [ { path: 'fruits/:id', component: FruiteNav, children: [ {path: '', component: FruitGeneral}, {path:

    -1熱度

    1回答

    我正在練習Angular 2,並配置了一個輸入密碼的按鈕,並將一個正確的密碼重定向到另一個頁面。我配置了路由,但我不知道如何去做,以便驗證並重定向。 我目前在下面配置了什麼,但是我不能點擊按鈕,我想重定向到第二頁。

    1熱度

    2回答

    請幫我解決下面的錯誤。在RouterLink上獲取模板分析錯誤。 請分享在角度2中使用RouterLink的正確方法。 Unhandled Promise rejection: Template parse errors:Parser Error: Unexpected token/at column 2 in [[/events]] in ng:///t/[email protected]:4

    2熱度

    2回答

    我有一個超鏈接,我需要在Angular 4中創建一個路由器鏈接。我對url有很多部分,其中一部分是數組。我不知道如何讓數組分割成爲routerlink數組的一部分。 藉此人爲的例子: [routerLink]="['/customers', customerid, orderid, arrayofints, anotherint]" 我想路由器看起來像這樣其中客戶id = 10,爲了= 500

    1熱度

    1回答

    按鈕看起來像這樣 <button [routerLink]="['/account/recovery','identification']" class="btn btn-default">Back</button> 我要檢查,如果點擊按鈕 後,如果它是一個錨標記solution is provided here URL已重定向到/account/recovery/identification

    1熱度

    2回答

    在頁面中路由未發生。我已經使用了HTML和配置代碼。 <nav aria-label="Page navigation"> <ul class="pagination pagination-plain"> <li> <a href="review/words" aria-label="Previous"> <span aria-hidden="tru

    2熱度

    2回答

    我遇到了一個問題,使用routerLink的div在點擊時會變成藍色。我認爲我錯過了一些非常明顯的東西,甚至可能是我在瀏覽器中的配置或一些錯過的CSS樣式,所以如果是這樣的話,對修正的禮貌解釋將不勝感激。 我已經把這個問題的基本演示放在這裏 - https://github.com/DavidStreid/routingIssue。創建此問題的代碼片段位於src/app/allGreetings.

    1熱度

    1回答

    我收到以下錯誤,當我嘗試打開通過[routerLink]一種新的形式: error_handler.js:54 EXCEPTION:未捕獲的(在承諾):錯誤:無法匹配任何路線。 URL段:「用戶訂閱對話框」 錯誤:無法匹配任何路線。 URL段: '用戶訂閱對話框' HTML頁: <h1>Usuários</h1> <button type="button" *ngIf="mostrarBota

    1熱度

    1回答

    UPDATE:,見下 所以我有一個應用程序,我有兩個不同的組織,當用戶正在使用的應用程序,因此我想加載根據不同的組件在其組織,他屬於。 方法1: 做一個簡單的條件在routes文件。 import { Routes } from '@angular/router'; import { UserStartComponent } from './user-start.component'; im

    4熱度

    2回答

    我已將AppRoutingModule放入類的@NgModule的imports之內。 AppRoutingModule以這樣的方式定義: const APP_ROUTES : Routes = [ { path: '', redirectTo: 'home', pathMatch: 'full', }, { path: