The controller with the name 'SomeController' is not registered.
名稱為'SomeController'的控制器沒注冊 ;
Description
This error occurs when the $controller() service is called with a string that does not match any of the registered controllers. The controller service may have been invoked directly, or indirectly, for example through the ngController directive, or inside a component / directive /route definition (when using a string for the controller property). Third-party modules can also instantiate controllers with the $controller()service.
當使用不匹配任何注冊控制器的字符串調用$ controller()服務時,會發生此錯誤。 控制器服務可以直接或間接地被調用,例如通過ngController指令或組件/指令/路由定義(當使用控制器屬性的字符串時)。 第三方模塊還可以使用$ controller()服務實例化控制器。
Causes for this error can be:
- Your reference to the controller has a typo. For example, in the
ngControllerdirective attribute, in a component definition's controller property, or in the call to$controller(). - You have not registered the controller (neither via
Module.controllernor$controllerProvider.register(). - You have a typo in the registered controller name.
Please consult the $controller service api docs to learn more.
導致此錯誤的原因可能是:
您對控制器的引用有錯字。 例如,在ngController指令屬性中,在組件定義的控制器屬性中,或在$ controller()的調用中。
您尚未注冊控制器(不通過Module.controller或$ controllerProvider.register())。
您在注冊的控制器名稱中輸入錯字。
請參閱$ controller service api docs了解更多信息。
