-
```
module.factory('Users', function() {
return Restangular.service('users');
});
// In your controller you inject Users
Users.one(2).get() // GET to /users/1
Users.post({data}) // POST to /users
`…
-
Came across the following scenario, could also be linked to #1016:
Populate the posts list:
``` javascript
var Posts = Post.getList().$object;
$scope.posts = Posts;
```
Add a new post:
``` javascr…
-
this is what happens when you edit an entity that have a field named "head":
![schermata 2015-02-01 alle 17 21 05](https://cloud.githubusercontent.com/assets/6401008/5992758/ebd3160e-aa36-11e4-9bc7-b…
-
Is it possible to set id property while defining a route? I know there is one global config, but each model I get from server has different property name for ID
```
Restangular.all('tenants');
// som…
-
I need to make a request that looks like:
```
/api/users?first_name=John&_config=mode-count,meta-filter-count
```
The result of that request is an object containing only the count (because of the `_…
-
Anything obviously wrong here?
My object factory...
```
(function() {
'use strict';
var module = angular.module('common.model.domain', []);
module.factory('Domain', function() {
…
emadd updated
8 years ago
-
Is there a way to set the default headers to undefined for a single request?
I'm well aware of the optional headers ~~withHttpConfig~~, but it ignores undefined value(bug?), i.e. uses the default valu…
absrd updated
6 years ago
-
Sorry for the long post, just wanted to provide as much info as possible.
I have a `ReportApiModule` and the following within the `run` method.
```
MyRestangular.extendCollection('reports', function…
-
#### Continuance from yesterday (finish these first)
- [x] Setup [zenhub](https://github.com/uguru/uguru/wiki) & bare-minimum familiarize yourself
- [x] Export your plugins as a new repository within …
-
When pulling a fresh install from git and after installing it, updating with composer generates the following Artisan error:
`[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined …