diegonetto / stock-dog

Tutorial on building an Angular application.
47 stars 44 forks source link

TypeError: Model.watchlists.push is not a functiom #7

Open Khanyisa opened 7 years ago

Khanyisa commented 7 years ago

at WatchlistService.save(watchlist-service.js:49)

Khanyisa commented 7 years ago

The code reads as follows: this.save = function(watchlist){ watchlist.id = Model.nextId++; Model.watchlists.push(watchlist); }