55 questions
1
vote
0
answers
91
views
no href in anchor tag selenium python
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 ...
0
votes
1
answer
1k
views
How to replace the `vue:href` method
: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 ...
1
vote
2
answers
84
views
How to pass a parameter in AngularJS
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 ...
0
votes
0
answers
404
views
AngularJS Filter with encodeURIComponent Not Working in Link
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 ()...
11
votes
4
answers
23k
views
Looking for substring alternative javascript
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....
0
votes
1
answer
318
views
How to use expression in ng-href for passing query parameters?
<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 ...
0
votes
1
answer
34
views
AngualrJs - change value of href in link -
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 ...
0
votes
1
answer
1k
views
How to use pathlocationstrategy in angular 5 to set base href or APP_BASE_HREF?
Below is the code snippet:
import {
Router
} from "@angular/router";
import {
HttpClient
} from "@angular/common/http";
import {
environment
} from "../../...
0
votes
2
answers
2k
views
downloading text file in postman but not in browser using restapi in angularjs
$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/...
1
vote
4
answers
591
views
URL link not redirecting properly in Angularjs
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}}&...
0
votes
1
answer
540
views
ng-href doesn't work as expected
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}}">...
0
votes
1
answer
2k
views
How to pass parameter with ng-click in a ng-href?
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=...
0
votes
1
answer
202
views
Angular ng-href link not working in my dev server
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/#/...
0
votes
3
answers
577
views
ng-href url not working
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/...
0
votes
4
answers
3k
views
Update href in AngularJS before navigating to the URL
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 ...
1
vote
3
answers
7k
views
AngularJS - change href Attribute based on current path
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 ...
1
vote
0
answers
66
views
angular ng-href read from scope not working
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 ...
-1
votes
2
answers
6k
views
Angular ng-href doesn't work
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 :
&...
1
vote
1
answer
1k
views
ng-href="#/myanchor" not working anymore as usual with angularjs 1.6.1
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-...
0
votes
1
answer
266
views
Unable to change ng-href onClick event
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 ...
1
vote
0
answers
62
views
ng-click and ngRouting on mobile devices
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 ...
1
vote
1
answer
431
views
Using ng-href as a filter function
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 ...
0
votes
2
answers
276
views
How to Open Large Data using ng-href or ng-click in new window in AngularJS [duplicate]
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
{
"...
2
votes
4
answers
10k
views
Display string containing HTML tag in Angular
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 ...
0
votes
2
answers
248
views
Creating dynamic inside ngrepeat - every href value is the same
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 ...
0
votes
1
answer
495
views
Passing $location.search parameters using ng-href
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?...
0
votes
1
answer
29
views
AngularJS app occasionally refreshes with href & ng-href
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 ...
0
votes
0
answers
68
views
Angularjs Delay of few seconds in mobile web
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>
...
0
votes
2
answers
2k
views
How to update the ng-href URl on $scope change
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=={{...
0
votes
1
answer
498
views
Ng-href Not Working
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....
0
votes
2
answers
1k
views
Angular - Conditionally setting ng-href through function
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")
....
0
votes
0
answers
458
views
Dealing with a 404 for an ng-href
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">
<...
0
votes
2
answers
3k
views
AngularJs ng-href dynamic link with scope not updating/working
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 {{}} ...
2
votes
2
answers
2k
views
How to click on a link with no ID or Name?
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-...
3
votes
1
answer
674
views
AngularJS using an expression as an href
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 ...
1
vote
2
answers
1k
views
Sip not working in AngularJs
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-...
0
votes
2
answers
280
views
AngularJS ngHref inside ngRepeat doesn't evaluate value
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-...
1
vote
2
answers
1k
views
Angularjs error validation for dropdown/select redirect with ng-href
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 ...
1
vote
2
answers
7k
views
Change CSS Style Sheet on click with Ionic Framework
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, ...
0
votes
1
answer
738
views
Angularjs ng-href Bug?
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 ...
1
vote
1
answer
2k
views
open in new tab using right click not working angularjs using ng-repeat, ng-href and ng-click
this is my code..
<div class="container-fluid" id="con2">
<div class="row-fluid" id="row2">
<div ng-repeat="product in productDetails" class="row">
...
25
votes
2
answers
48k
views
Angularjs function in ng-href
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()" &...
0
votes
1
answer
1k
views
Change href can't update the data which bind to ng-src or ng-href
Html
<div class="result" ng-controller="test">
<div>{{result}}</div>
<a ng-href="{{result}}"></a>
</div>
JS
App.controller('AppCtrl', function AppCtrl($...
2
votes
1
answer
2k
views
Why ng-href behaving weird while parsing geo string
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>
...
4
votes
1
answer
1k
views
Using ng-href with geo: Uri in Cordova does not work
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="{{...
1
vote
2
answers
642
views
Angular JS cleanest way to conditionally append string to tag attribute
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}}"&...
3
votes
2
answers
2k
views
Set ng-href to current page
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 ...
4
votes
2
answers
19k
views
Can I have Angular ng-href bind variables within a string
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 ...
1
vote
1
answer
552
views
using ng-href with javascript in anchor tag (bookmarklet)
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 '...
10
votes
4
answers
19k
views
AngularJS ng-href does not go to link
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}}"...