Monday, 6 November 2017
Error: [$controller:ctrlreg] The controller with the name 'myController' is not registered in angular js.
in: angularjs
The reason behind this is that, if we write our controller in some js file then compulsory that js file need to add in our page otherwise it will show you error.
Example:-
suppose i added my controller in js file called test.js then in whatever the page i want to use that controller then compulsory i need to add the js file like this,
<script src=".../test.js"></script>
and make sure before that add angular js file and our module file if exists.
RELATED POSTS

Loader Example Using ngHide in AngularJS.
In this article, We will discuss about a Loader Example using ngHide in ...
Validation (HTML5): Attribute 'ng-app' is not a valid attribute of element 'body'.
In this article, We will discuss Why Attribute 'ng-app' is not a valid a ...

Loader Example Using ngShow in AngularJS.
In this article, We will discuss about a Loader Example using ngShow in ...

Loader Example Using Loader Image in AngularJS.
In this article, We will discuss about a Loader Example using Loader Ima ...
-
This issue is Completely related to EntityFramework and this issue arises whenever you have installed EntityFramework in one project at th...
-
This is generally a Common Problem or the error could be like this, To Resolve this error, One Small Solution is Exists which is as b...
-
In this article, We will discuss What is the above Error and How to resolve this Error. Whenever, We are Restoring our database into A...
0 comments:
Post a Comment