BaseModel
Extends:
backbone~Backbone.Model → BaseModel
Direct Subclass:
Base model.
Constructor Summary
Public Constructor | ||
public |
constructor(options: object) Constructor. |
Method Summary
Public Methods | ||
public |
Override of destroy to allow for generic handling. |
|
public |
Override of fetch to allow for generic handling. |
|
public |
Returns descriptive string for model. |
|
public |
parseIdFromUrl(url: string): string Parses ID out of resource type URL. |
|
public |
Override of save to allow for generic handling. |
|
public |
URL override to add trailing slash. |
Public Constructors
Public Methods
public destroy(options: object) source
Override of destroy to allow for generic handling.
Params:
Name | Type | Attribute | Description |
options | object | Backbone.Model.destroy options object |
public fetch(options: object) source
Override of fetch to allow for generic handling.
Params:
Name | Type | Attribute | Description |
options | object | Backbone.Model.fetch options object |
public getDescription(): string source
Returns descriptive string for model. This should be overridden by sub-classes.
public parseIdFromUrl(url: string): string source
Parses ID out of resource type URL.
Params:
Name | Type | Attribute | Description |
url | string | URL with UUID at end |
TODO:
- this should be in a utility file