Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: angular/code.angularjs.org
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7cd7aaa
Choose a base ref
...
head repository: deadmann/code.angularjs.org
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c4d4234
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 6, 2016

  1. Provide 'transformResult' action

    i use TS files to write my model, it was several days already, that i wanted to append an interface to my model, but it always failed and i was wonder why... asking around, searching a lot... but nothing...
    
    Yesterday, i wrote a new module that need to check for input parameter type. i saw what it fails... and again searching through code and topics... so at some point i found angular change my model again... seeing what... i told 'transformResponse' to return an object of type AcDocRow, but after steping through i saw, hey waits, it's again an stringified json :| ...
    Searching searching searching...
    -lot of people have same issue, it's not only me...
    -Angular Resource Pass Object to Http.. and it return the value to angular, angular again modify the object....
    -lot of conversion from string to object and vice versa.
    -no solution...
    
    what should i do?
    well let see through the code...
    and i add ability to add a new action which modify the actual result. and you can bypass transformResponse too. which seem more complicated.
    
    it's all seem to be clean... so i hope it be acceptable by the jury.
    I also it get updated in new version of angular too...
    
    I'm capable of filling the doc, but i'm not a native english talker. so i leave it to your hand.
    deadmann committed Apr 6, 2016
    Configuration menu
    Copy the full SHA
    c4d4234 View commit details
    Browse the repository at this point in the history
Loading