Click here to Skip to main content
15,916,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,
I developed a site with API and MVC.
in MVC, I am using Angular JS to load partial view.
it is working correctly in chrome.
but in IE 10 is not working, it shows error as "angular is undefined".
i called angular js as follows:

XML
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js"></script>
    <script src="https://code.angularjs.org/1.3.15/angular-route.js"></script>
    <script src="~/Scripts/AngularJS/app.js"></script>


inside app.js, i used the following code:
var app = angular.module("app", ['ngRoute', 'http-error-handling']);
in this line, it throws exception as "angular is undefined"

Regards,
Lalitha
Posted
Comments
Why don't you use the below one...for the route?

https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular-route.js

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900