question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change URL of Element

See original GitHub issue

Hey Again,

I have a scenario where I’ve done a search for a row of data in a table using Restangular.all('filters/search'). I then display that in a table and give the option to copy an element to another collection of elements I’ve pulled from my datasource using Restangular.all('filters'). Now I have a collection of elements where one of them has the URL of /filters/search and the rest /filters. If I wanted to further manipulate that new element, I need to somehow change its url to /filters so it will post to the correct URL.

Does this make sense?

Cheers, meenie

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Meekohicommented, Sep 9, 2016

@gustperz For what it’s worth, we ended up switching to just using ngResource. This repo is basically abandonware now.

0reactions
gustperzcommented, Sep 9, 2016

@Meekohi agree with you, and I’m having the same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change href of <a> tag on button click through javascript
Without having a href , the click will reload the current page, so you need something like this: <a href="#" onclick="f1()">jhhghj</a>.
Read more >
How do I use JavaScript to modify the URL without reloading ...
You can use either history. pushState() or history. replaceState() to modify the URL in the browser, depending on your needs:
Read more >
How to Change the URL in JavaScript: Redirecting - Code
In this quick article, we'll discuss how to change the URL in JavaScript by redirecting. We'll go through a couple of different methods...
Read more >
How to Change the Href for a Hyperlink using jQuery - W3docs
Read this JavaScript tutorial and learn the easy way of changing the href attribute for a hyperlink step by step by using one...
Read more >
How to Change href Attribute of a Hyperlink Using jQuery
Answer: Use the jQuery .attr() Method ... You can use the jQuery .attr() method to dynamically set or change the value of href...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found