# Category: href

## How can i append a dynamic angular parameter to an url?

I am working on a project that uses typescript and angularjs. I have to insert the reference to a dynamic link as in the example: http://…./Detail.aspx?code={{MyCode}} where myCode is a dynamic parameter to insert at the end of the URL. How do you advise me to take action? could the use of the ng-href directive help me? Source: AngularJS

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