Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
1 vote
0 answers
91 views

Python Version 3.9.12, Selenium Version 4.8.0 Hi, I am trying to scrape this link Using Selenium Python When you go to this link and press the Search Times button, you will see list of available ...
Muhammad Daniyal's user avatar
0 votes
1 answer
1k views

:href="" is scanned by sonarqube, showing Take care when using the v-bind:href directive to set URLs which can contain malicious Javascript (javascript:onClick(…)). Brothers and sisters, is ...
Tom Kale's user avatar
1 vote
2 answers
84 views

I have a list of products in Angular JS and when I click the link for a certain item I want to sent the index of that product to a new page where to get all the details for that item (category, price ...
John R.'s user avatar
  • 420
0 votes
0 answers
404 views

I am trying to encode a value passed in an URL using a filter that calls encodeURIComponent. My original filter angular. module('machineorderDetail'). filter('encodeURIComponent', function ()...
markcee's user avatar
11 votes
4 answers
23k views

Basically my problem is I am using the substring method on the variable version for the result then to be used inside a URL using ng-href: substring(0, 3) version 9.1.0 = 9.1 (good) version 9.2.0 = 9....
Jam12345's user avatar
  • 173
0 votes
1 answer
318 views

<a ng-href="{{a==3 ? 'www.google.com/correct?{{a}}' : 'www.google.com/correct?{{a+1}}'}}" It throws error. Error: $parse:lexerr Lexer Error Can anyone help please. I am new to angularjs and ...
Saloni's user avatar
  • 172
0 votes
1 answer
34 views

I can change properties in AngularJS by using a conditional If statement: OrgName: org && org.id==4162 ? 'Org1' : 'Org2' But i want to be able to change the href of a link depending on this ...
Paolo B's user avatar
  • 3,464
0 votes
1 answer
1k views

Below is the code snippet: import { Router } from "@angular/router"; import { HttpClient } from "@angular/common/http"; import { environment } from "../../...
hs27's user avatar
  • 107
0 votes
2 answers
2k views

$scope.newFile is my response from backend. Actually my response should be a text file, which is working in postman.But in browser , I am getting Cannot GET /Organizer/%7B%22data%22:%22id/tname/...
Nicoleta Wilskon's user avatar
1 vote
4 answers
591 views

I have a link in my announce.obj. But when I clicked it, it's giving me the wrong url (http://www./) in the browser. html <p> <a ng-href="{{data.links}}" target="_blank">{{data.links}}&...
code.cycling's user avatar
  • 1,272
0 votes
1 answer
540 views

I have AngularJS v1.3.1 on the project. I have an anchor tag in my template: <a class="btn btn-primary" ng-href="#!/database/{{home.uuidSelectedDatabase}}/segments?{{goToSegmentsUrlQuery}}">...
Mikhail Batcer's user avatar
0 votes
1 answer
2k views

Actually, I got a list of products and I would like to pass the current product id when click on the ng-href thanks to a function with ng-click in the ng-href. Here is my html file : <div class=...
Cupkek05's user avatar
  • 468
0 votes
1 answer
202 views

In my application in local I am using {{abc}} In local it gets redirected to http://localhost:456/#/view/56 And in Dev link it should be redirected to https://www.dev.appname/projectname/#/...
Sri K's user avatar
  • 1
0 votes
3 answers
577 views

I don't know why ng-href isn't working. What i want to do is go from a modal to a view, passing the parameters {{user}} and {{email}} here's the state //gestion .state('gestion', { url:'/compte/...
Rated Ace's user avatar
0 votes
4 answers
3k views

In an AngularJS application I have the following code: <a target="_blank" ng-href="{{someProperty.href}}" ng-click="someMethod($event)">Hello!</a> Now, someMethod() and someProperty ...
Cosmin's user avatar
  • 954
1 vote
3 answers
7k views

How can I change the value of the href-Attribute based on the current path? My if clause in AngularJS looks like this: if (newPath.indexOf('test') > -1) { // change the value of the ...
Codehan25's user avatar
  • 3,042
1 vote
0 answers
66 views

here is my downloadable link : download.xxxxxx.com/yyyyy.json for company policy reason, I use xxxxxx and yyyyy to illustrate domain and json file name. but I have tested on my end, this is a ...
Qing Xu's user avatar
  • 175
-1 votes
2 answers
6k views

I am using Chrome and have set up node server that is listening on port 8080 and provides all listed files. Angular app.js suppose to show the content of StuffView.html (simple text). index.html : &...
mtx's user avatar
  • 1,244
1 vote
1 answer
1k views

I used to work with angularjs 1.5.8. For professional reasons I need to migrate to version 1.6.1 and I need to use ng-href to go to an anchor that I configured. So when I write in my code: <a ng-...
kabrice's user avatar
  • 1,665
0 votes
1 answer
266 views

I have a footer with a button in my angular app. The button has an ng-href attribute which should change during the ng-click event to affect the routing mechanism. For some reason I cant make this ...
Alex's user avatar
  • 2,082
1 vote
0 answers
62 views

I am completely new to Angularjs and haven’t been doing any code for ages. I started setting up my website again with Angularjs. I have a main page and an about page, to which the user gets via ...
Tobias HOLZMANN's user avatar
1 vote
1 answer
431 views

Is there anyway to pass a string through ng-href and achieve the same result as if it was the value of that directive? e.g. {{ url | ng-href }} So that way the filter or pipe sanitizes any ...
chrisl-921fb74d's user avatar
0 votes
2 answers
276 views

Can some one help me putting the DATA value new window . I want to make td cell with DATA name as hyperlink . If I click that DATA it should open new window to show the value . Demo JSON Data { "...
Mahesh G's user avatar
  • 1,286
2 votes
4 answers
10k views

I checked for answers in SO but couldn't find satisfying answer. So here I'm asking : I have a string as follow var string = "With this you have agreed with the <a href='#'>rules and ...
Fred A's user avatar
  • 1,782
0 votes
2 answers
248 views

I am newer to angular/js. I'm using ng-repeat to repeat results (as list-items) from a webservice. I have to use some of the fields from the json results to create a dynamic URL to use on my webpage ...
clo_'s user avatar
  • 25
0 votes
1 answer
495 views

Something really weird happens in my current code. So I'm using ng-repeat to create several elements based on an array of objects like this: <a ng-repeat="report in reports" ng-href="#/report?...
Sven Ya's user avatar
  • 582
0 votes
1 answer
29 views

Occasionally my AngularJS app refreshes when clicking a link that takes you somewhere within the site. There doesn't appear to be any consistency with this, sometimes it's with href="/foo" and other ...
LT86's user avatar
  • 655
0 votes
0 answers
68 views

I have used this in my code , it works fine on web , but on mobile web when this anchor tag is clicked there is a pause for 3-4 sec then it is redirected <a ng-href="/menswear">Shirt</a> ...
evilmind's user avatar
  • 116
0 votes
2 answers
2k views

I'm looking to update the 'ng-href' url on scope value from controller.Initially on page load url is inserted fine. But then when i change the scope that URL should be updated <a ng-href=={{...
rUI's user avatar
  • 13
0 votes
1 answer
498 views

I have this code <a ng-href="{{vm.user.quicklinks2}}" ><image src="./images/potato.jpeg"></a> Which when hovered over shows nothing whereas this works <a href="{{vm.user....
Danny McClafferty's user avatar
0 votes
2 answers
1k views

I have an angular controller and I want to conditionally set links depending on the result of a function <a ng-href=" {{ setLink('contact') }}" In the controller angular.module("my-app") ....
user5680735's user avatar
0 votes
0 answers
458 views

I'm stuck with an anchor that sets the ng-href to a server-stored variable and let's say, 1 in 300 return a 404 and that source is out of my hands to control. <div class="steam-slide"> <...
Makrel's user avatar
  • 1
0 votes
2 answers
3k views

I am having a problem where an tag with an ng-href tag link with a scope parameter inside of it does update when the scope changes. I read in this answer (Why does the directive ng-href need {{}} ...
razorcat's user avatar
2 votes
2 answers
2k views

HTML code: <a ng-repeat="group in groups()" ng-href="phones/Apple/iPhone%203G%20or%203GS/" class="ng-scope" href="phones/Apple/iPhone%203G%20or%203GS/"> <div class="card-box device-...
Blanc's user avatar
  • 21
3 votes
1 answer
674 views

My webpage is set up so when a user selects one of many options a number of hyperlinks will appear and take you to that webpage. To make my code less DRY I created an ng-repeat div to output all the ...
Markus's user avatar
  • 297
1 vote
2 answers
1k views

I am getting the user details from a webservice. Everything is fine except that the javascript is adding an unsafe attribute to the email Id field. <div class="row"> <div class="col col-...
RAHUL DEEP's user avatar
0 votes
2 answers
280 views

I have the following markup: <ul ng-if="item.children.length && item.open" class="fadeIn"> <li ng-repeat="child in item.children" ng-show="child.visible"> <a ng-...
sm0ke21's user avatar
  • 591
1 vote
2 answers
1k views

I'm currently using angularjs's ng-href and a select html element with ng-model where I am using ng-href to link to the "selectedItem" (from ng-model). I was unable to validate or provide an error ...
mding5692's user avatar
  • 816
1 vote
2 answers
7k views

I have a basic Ionic App and would like to apply one of three different style sheets based on a User Input. The page will be pre-loaded with the basic style, then a user can select two other options, ...
Phil Brockwell's user avatar
0 votes
1 answer
738 views

I came across something strange and wanted to see if anyone had the same problem. I am using Angularjs with the ng-href directive within an ng-repeat as below. The issue I encountered is that if the ...
Jason's user avatar
  • 31
1 vote
1 answer
2k views

this is my code.. <div class="container-fluid" id="con2"> <div class="row-fluid" id="row2"> <div ng-repeat="product in productDetails" class="row"> ...
schneider's user avatar
  • 293
25 votes
2 answers
48k views

I want to call a function in ng-href and return the link from the function. When I click the function it sends page to that function in url. Like: localhost/pageLink() <a ng-href="pagelink()" &...
user4773604's user avatar
0 votes
1 answer
1k views

Html <div class="result" ng-controller="test"> <div>{{result}}</div> <a ng-href="{{result}}"></a> </div> JS App.controller('AppCtrl', function AppCtrl($...
user2655973's user avatar
2 votes
1 answer
2k views

I've multiple geo string like geo:0,0q=1+a+bc, and I'm gonna assign this to ng-href of the anchor tag. Like below I'm doing it. HTML <a ng-href="{{geoString}}">Location</a> </br> ...
Pankaj Parkar's user avatar
4 votes
1 answer
1k views

I am trying to use the geo: uri in Cordova. It works when I do something like: <a href="geo:0,0q=12345+jefferson+st">link1</a> but if I do something like with angular: <a ng-href="{{...
Aaron Guzman's user avatar
1 vote
2 answers
642 views

I have a very newbie question about angularJS: I have two <a> tag very similar to show their href depends only if the variable foo is set: if foo == null: <a ng-href="#/bar/{{col.slug}}"&...
Rowandish's user avatar
  • 2,765
3 votes
2 answers
2k views

Is it possible to set ng-href to go to the current page? eg: <a ng-href="https://www.facebook.com/sharer/sharer.php?u={{ window.location.href }}">facebook</a> When the above runs, I ...
John Fu's user avatar
  • 1,852
4 votes
2 answers
19k views

I'd like to bind a links href property to a variable in my controller but I'd also like to have that url be bound to variables. I'd like to accomplish this using the built in binding and without ...
Stephen Marsh's user avatar
1 vote
1 answer
552 views

I am trying to create a bookmarklet on an anchor tag using angularjs. When the script is static, there is no need to use angularjs code. but when it is dynamic, both href and ng-href are appending '...
CodingNinja's user avatar
10 votes
4 answers
19k views

I've checked the docs and the ng-href not working thread on here already but I'm stumped. Does ng-href require a full path? Mine currently looks like <a ng-title="{{title.text}}" ng-id="{{id.num}}"...
code-sushi's user avatar