angularjs - Angular 1.6 ui-router and ng-include in Internet Explorer -
i developing angular 1.6 app , using angular ui-router.
in config.router.js file have state:
$stateprovider.state('myapp.edit', { url: '/edit/:id', templateurl: 'views/actions/edit.html', controller: ['$http','$rootscope',function( $http, $rootscope){ $rootscope.displaysidebar = true; }] });
in application layout file layout.html
file have included navbar navbar.html
file using data-ng-include
<div data-ng-include=" 'views/partials/navbar.html' "></div>
but when run application , check browser console checking myapp/edit/views/partials/navbar.html
instead of myapp/views/partials/navbar.html
. state url getting prepended while performing ng-include , ending in 404 in ie. in other browsers working fine.
can kindly me on this.
Comments
Post a Comment