angular.js - angular + require + angular-ui-router 报了如下的错。
PHP中文网
PHP中文网 2017-05-15 17:05:44
0
4
535

走投无路,求帮助,谢谢了~!

Could not resolve 'employeeDatail' from state 'employee'
PHP中文网
PHP中文网

认证高级PHP讲师

reply all(4)
Peter_Zhu

If you use require, is employeeDatail loaded asynchronously? If so, check whether the module corresponding to employeeDataild has been loaded when employee's state is triggered.

伊谢尔伦

I think it’s a routing problem, is your ui-sref link correct

Post the code

Do you want to do modular on-demand loading? If so, it is recommended to use angularAMD

滿天的星座

There is a problem with routing, your ui-sref does not match

Ty80

The poster can refer to a demo I wrote before, just to test angular-ui-router. The address is:
https://github.com/silence717...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template