I am new to AngularJS and trying to build an AngularJS practice app, in which, the user will concatenate a url from multiple inputs, i.e. protocol, domain, path, param1, param2,
If you want to bind a dynamic url with href
then you can manipulate you URL in ng-click
or ng-mousedown
event and bind to target element.
JS:
var goToLinkedPage = function (event, basePath, param1, param2, param 3) {
var newState = basePath + "?" + param1 + "&" + param2 + "&" + param3;
jQuery(event.target).attr('href',newState);
};
HTML:
Click Here