首頁 > 問答 > 主體
走投無路,求幫助,謝謝了~!
1
<code>Could not resolve 'employeeDatail' from state 'employee'</code>
<code>Could not resolve
'employeeDatail'
from state
'employee'
</code>
天蓬老师2017-05-15 17:07:44
你用了require的話,employeeDatail是不是非同步載入的,如果是的話檢查下employee的state觸發的時候是否已經載入好了employeeDataild對應的模組。
伊谢尔伦2017-05-15 17:07:44
我覺得是路由問題,你的ui-sref連結對嗎
程式碼貼上來
你是想做模組化按需載入嗎,如果是,建議使用angularAMD
滿天的星座2017-05-15 17:07:44
路由出問題了,你的ui-sref不符
PHP中文网2017-05-15 17:07:44
樓主可以參考我之前寫的一個demo,只是為了試驗angular-ui-router。網址為:https://github.com/silence717...