| 10 | } |
| 11 | } |
| 12 | class AccountModel extends baseModel { |
| 13 | constructor(options, data) { |
| 14 | super({private: true}, ['32113123123', '524214691']) //call the parent method with super |
| 15 | this.name = 'Account Model' |
| 16 | this.url +='/accounts/' |
| 17 | } |
| 18 | get accountsData() { //calculated attribute getter |
| 19 | // ... make XHR |
| 20 | return this.data |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | let accounts = new AccountModel(5) |
| 25 | accounts.getName() |
nothing calls this directly
no outgoing calls
no test coverage detected