Search Posts

Category: href

prevent to stop loading the angularjs html

how to prevent to stop loading the angularjs html I want load one html from angularjs controller by a link (window.location = “link”) of that html page. and prevent to stop loading the angularjs html (html that invoke the angularjs controller). Or any way to skip angularjs html and load the link from angularjs controller. Please give some suggestions. Source: AngularJS

a target="_self" is not working in AngularJS ui-router

I have a problem that target=”_self” is redirecting to otherwise of ui-router HTML: <a target=”_self” href=”#” class=”right_bt” id=”activator”><img src=”img/landing/menu.png” alt=””/></a> This part of code is a button that will trigger on/off the display of menus. App.js app.config(function($stateProvider, $urlRouterProvider){ $stateProvider .state(“landing”, { url:”/landing”, controller: “LandingController”, templateUrl: “html/landing/index.html” }) $urlRouterProvider.otherwise(‘/’); }) The problem is it redirects to url ‘/’ set in $urlRouterProvider.otherwise. Is there a solution to these problem? Thanks. UPDATE There is nothing wrong with this, […]