|
|
|
@ -102,7 +102,7 @@ export class HalResource { |
|
|
|
|
|
|
|
|
|
// Reset and load this resource
|
|
|
|
|
this.$loaded = false; |
|
|
|
|
this.$self = this.$links.self({}, this.$loadHeaders(true)).then(source => { |
|
|
|
|
this.$self = this.$links.self({}, this.$loadHeaders(force)).then(source => { |
|
|
|
|
this.$loaded = true; |
|
|
|
|
this.$initialize(source); |
|
|
|
|
return this; |
|
|
|
@ -111,11 +111,6 @@ export class HalResource { |
|
|
|
|
return this.$self; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public $unload() { |
|
|
|
|
this.$loaded = false; |
|
|
|
|
this.$self = null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public $plain() { |
|
|
|
|
return angular.copy(this.$source); |
|
|
|
|
} |
|
|
|
|