Search Posts

Category: href

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, […]