javascript - Angularjs page not loadingon IE11 with routing and JSON -
i have issue angular , internet explorer (it's working on chrome , safari) making blog different article json data, , when click on article, new page loading details of article single json data. have followed angular tuotial https://docs.angularjs.org/tutorial/step_07
code of blog page:
<li ng-repeat="article in articles.articles"> {{article.titre}} <a href="blog/{{article.id}}"> go </a> </li>
code of <div ng-bind-html="articleblog"></div>
and javascript (controller):
monitorcontrollers.controller('detailctrl', ['$scope', '$routeparams', '$http', '$sce', function($scope, $routeparams, $http, $sce) { $http.get('data/'+$routeparams.articleid+'.json').success(function(data){ console.log(data); $scope.articleblog= data.texte; }) }]);
and routing
.when('/blog/:articleid', { templateurl: 'views/article.html', controller: 'detailctrl'
Comments
Post a Comment