1

I am building my first Angular and Bootstrap application. For some reason the routing does not work with the partials in Internet Explorer. When I check the console in IE there are no errors. My code is:

var myApp = angular.module('myApp', ['ngRoute','mainControl','ui.bootstrap', 'ngSanitize']);

myApp.config(['$routeProvider', function($routeProvider) {
$routeProvider.
when('/splash', {
    templateUrl: 'partials/splash2.html',
    controller: 'MainControl'
}).
when('/advice', {
    templateUrl: 'partials/advice.html',
    controller: 'MainControl'
}).
when('/media', {
    templateUrl: 'partials/media.html',
    controller: 'MainControl'
}).
when('/main', {
    templateUrl: 'partials/main.html',
    controller: 'MainControl'
}).
otherwise({
    redirectTo: '/splash'
});

}]);

The angular versions I am using are:

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular-route.min.js"></script>

I also have a controller but I am guessing the problem is in app.js?

Any help would be great.

7
  • Which version of script and IE? Because some jQuery, Bootstrap versions do not support old IE. Commented Aug 28, 2015 at 13:20
  • In IE9 its not working.... which versions should I be using? Commented Aug 28, 2015 at 13:28
  • IE9 is alright, try checking the console for errors? Commented Aug 28, 2015 at 13:30
  • No errors the app loads but the partials don't? Commented Aug 28, 2015 at 13:41
  • It looks like it's a problem because none of the IE's work Commented Aug 28, 2015 at 13:45

1 Answer 1

0

"AngularJS 1.3 has dropped support for IE8. AngularJS 1.2 will continue to support IE8, but the core team does not plan to spend time addressing issues specific to IE8 or earlier."

Developer Guide

Maybe the problem is in the compatibility?

Sign up to request clarification or add additional context in comments.

4 Comments

I recommend you to use angular ui-router: github.com/angular-ui/ui-router . I am doing it all the time and it works well
Is IE not compatible with ngRoute?
try use this <meta http-equiv="X-UA-Compatible" content="IE=edge"> Also, you can read more here: stackoverflow.com/questions/26140575/…
It turns out its not a routing problem after all ui-router and ngRoute were fine, I have some code which is breaking it in two of the browsers

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.