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.

Add to FAQ: need access to 'unrestangularized' element

See original GitHub issue

First of all let me start by saying you have done some great work here. I simply love this library.

However I’ve run into a small problem where I am running the code below:

Restangular.one('element').get().then(function(element) {
    $scope.element = element;
});

However $scope.element now contains my element from the server plus a lot of restangular functions and properties.

This is problematic for me because I need to process the element received from my server recursively. Meaning that I need the element to be pure.

Does this functionality already exist? Is there any current way to access the ‘unrestangularized’ version of an object? I would expect something like:

Restangular.one('element').get().then(function(element) {
    $scope.element = element.preRestangularizedElem;
});

Thanks

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:38 (19 by maintainers)

github_iconTop GitHub Comments

5reactions
piyushchauhan2011commented, Jul 18, 2015

Restangular 1.4.0 above versions have method plain() for working with plain response data.

screen shot 2015-07-18 at 11 28 18 am

0reactions
qbuniacommented, Mar 10, 2015

Iam also waiting for a fix to this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

简介 | RestAngular
Restangular is an AngularJS service that simplifies common GET, POST, DELETE, and UPDATE requests with a minimum of client code. It's a perfect...
Read more >
25 Best Examples Of Effective FAQ Pages
FAQ pages matter. Discover why by learning from these 25 great examples of FAQ resources and find out what makes them effective.
Read more >
Adding frequently asked questions (FAQs) directly to an index
You can add frequently asked questions (FAQs) directly to your index using the console or the API. Adding FAQs to an index is...
Read more >
How to Add a Frequently Asked Questions - FAQs section in ...
When launching a new product or website, you may need to add a FAQs section in WordPress. You can add a new page...
Read more >
Mark Up FAQs with Structured Data | Google Search Central
When you use FAQ structured data, you may help users discover information in a rich result. Learn about FAQ schema markup and see...
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