Error: $controller:ctrlreg A controller with this name is not registered

前端 未结 2 635
别那么骄傲
别那么骄傲 2020-12-22 09:57

I see this error when I press F12 in chrome, but strangely things still work. There seems to be no problems.

The controller with the name \'AccountUpdateVie         


        
相关标签:
2条回答
  • 2020-12-22 10:48

    i import the file, in index.html and my problem solved,

    <script src=".../AccountUpdateStep1ViewModel.js"></script>
    
    0 讨论(0)
  • 2020-12-22 10:49

    You had 'AccountUpdateViewModel controller. but you didn't registered it in your route.config. if you didn't config means you never use it anywhere.

    please remove unwanted model. or register it in the rout config section.

    0 讨论(0)
提交回复
热议问题