cost 135 ms
角模塊注入誤差(角1.5)

[英]Angular Module Injection Error (Angular 1.5)

我已經定義了一個示例項目結構來嘗試ngComponentRouter 。 以下是以下文件, 我可能缺少一些基本的東西。 Index.html app.js 並且, crisis.js 看起來像: 控制台中的錯誤是: ...

單元測試ngComponentRouter-Angular 1.5.x

[英]Unit testing ngComponentRouter - Angular 1.5.x

我正在嘗試為Angular 1.5構建基本的單元測試,目的是A)練習單元測試,以及B)熟悉Angular 1.5.x中基於組件的開發。 我正在嘗試對一個簡單的組件進行單元測試,但是我不斷收到以下消息: 錯誤:[$ injector:modulerr]由於以下原因,無法實例化模塊應用程 ...

Angular 2標頭組件標題根據狀態動態變化

[英]Angular 2 Header component Title change dynamically according to the state

我有一個使用角度2的設計,其中所有其他組件加載的標題組件,導航欄組件和主體組件。 如下圖所示 頭 導航 其他組件加載的位置(此部分可能具有嵌套組件/子組件) 所以基本上,在標題組件中,我想顯示當前狀態 。 並且在當前狀態的底部,我想顯示用戶的先前狀態 ...

$ routerCanActivate不工作(Angular 1.5組件路由器又名ngComponentRouter)

[英]$routerCanActivate not working (Angular 1.5 component router aka ngComponentRouter)

首先,是的,我知道ngComponentRouter模塊已被刪除,但除了這個問題之外,我的應用程序已經很好地使用它了。 問題是$ routerCanActivate函數沒有觸發(在https://docs.angularjs.org/guide/component-router中搜索“$ ...

無法獲得角度組件路由器以延遲加載組件

[英]Cant get angular component router to work with lazyloading of components

大家好,stackoverflowers,我已經嘗試了一段時間,但沒有成功地用新的組件路由器(ngComponentRouter)實現角度組件的延遲加載。 這是我用於配置主要組件的代碼: //define main app component app.value("$route ...

根路由器上的Angular 1.5 $ routerOnActivate

[英]Angular 1.5 $routerOnActivate on Root Router

我想確保用戶在未嘗試登錄的任何組件之前都已正確登錄(如果尚未登錄)。請發送給他們以進行登錄。 我的想法是在根路由器中的$routerOnActivate中進行檢查。 對我來說,這可以解決所有子路線的問題。 但是,如果我只是嘗試記錄某些內容,似乎什么也不會發生。 例: 如果 ...

組件路由器中的綁定-Angular 1.5

[英]Binding in Component Router - Angular 1.5

我在組件路由器中苦苦掙扎。 在《開發人員指南》中,您應該避免在組件中使用$ scope,因此必須通過綁定傳遞對象。 基於以下示例: https : //docs.angularjs.org/guide/component和https://docs.angularjs.org/guid ...

Angular 1.5.3和Typescript&ngComponentRouter:綁定:{$ router:'<'}始終返回路由器屬性的未定義

[英]Angular 1.5.3 & Typescript & ngComponentRouter : bindings: { $router:'<' } always returns undefined for router property

我正在嘗試使用帶有用於組件控制器的Typescript和類的Angular 1.5.3的組件路由器,但是我無法通過綁定:{$ router:'&lt;'}將當前路由器注入到我的任何組件中。 當我在chrome調試器中檢查$ ctrl中是否有任何組件時,它始終顯示未定義。 路由本身按預期方式工 ...

AngularJS 1.5 ngComponentRouter

[英]AngularJS 1.5 ngComponentRouter

ngNewRouter (現在名為ngComponentRouter )應該是1.4,但是被推遲了,現在應該進入1.5(據我所知)。 但是,它不在1.5 beta2包中 。 我確實在github上看到angular1_router ,但是我沒有看到2.0 alpha包中包含的構建模塊。 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM