MyModel.save () => rejected promise with status 201

When I call myModel.save (), in one of my controllers, to insert a new entry into the repository, I return a promise with isRejected: true.

The cause object has the following attributes:

readyState: 4, status: 201, statusText: "created"

The object is created correctly in my REST service. In fact, if I put transitionToRoute in catch (), instead of then () everything would look just fine.

What's going on here?

+3
source share
1 answer

. , . , . , find .

IE:

{
  type: {
    id:12312,
    property:'value',
    otherProperty:'value'
  }
}
0

All Articles