After a log of dumping and testing I found out the problem.

=== 1 ===

So, for models in Angular this project uses a library angular-model.js, in 
which a module is defined:


angular.module('ur.model', ...

 

and after that - we have a scaffold module that uses the model. It's in 
angular-scaffold.js, where we have:

> var module = angular.module('ur.scaffold', ['ng', 'ur.model']);
> module.factory('scaffold', ['model', ... 


And my front-end controller uses this scaffold module.

=== 2 ===

There is a server side code, that returns the JSON for the item, and this 
JSON is used in the model module. And this JSON have to have a property for 
the URL for this item, including the item ID. And this URL gets used to 
view the item or to edit the item - depending on weather you send GET or 
POST request to it.

And as you can guess - the server side didn't return this item-URL property 
in the JSON for the item. When I did it - the problem got solved.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to