Did you also put ngApp on the body? ngApp automatically starts angular. If the view is started multiple times, it will report the error displayed to you. You will understand if you look at the source code of angular
if (window.angular.bootstrap) {
//AngularJS is already loaded, so we can return here...
if (window.console) {
console.log('WARNING: Tried to load angular more than once.');
}
return;
}
By the way, I tested it myself by placing ui-view on the body and no error was reported. The premise is that I placed ngApp on the html
Did you also put ngApp on the body?
ngApp automatically starts angular. If the view is started multiple times, it will report the error displayed to you. You will understand if you look at the source code of angular
By the way, I tested it myself by placing ui-view on the body and no error was reported. The premise is that I placed ngApp on the html