These are chat archives for jadjoubran/laravel5-angular-material-starter

12th
Mar 2016
krasavchegUa
@krasavchegUa
Mar 12 2016 09:47
Hi!
I've got a problem.
    this.API.all('post').get()
rises an error: TypeError: Cannot read property 'toString' of undefined
Can anyone help me?
This code is copy-pasted from index page. But posts was changed to post.
The url /api/post returns a bunch of data
Jad Joubran
@jadjoubran
Mar 12 2016 10:07
@krasavchegUa get requires an argument.. you can call it with an empty string .get('')
this is from Restangular
thanks for reporting the issue, I'll fix it and update the homepage :D
krasavchegUa
@krasavchegUa
Mar 12 2016 10:08
Many thanks ;-)
Jad Joubran
@jadjoubran
Mar 12 2016 10:15
@krasavchegUa fixed on laravel-angular.io thanks!
krasavchegUa
@krasavchegUa
Mar 12 2016 10:16
@jadjoubran :+1: