http request errors with rc3
Simple http request... was working before updated to rc3 (or rc4)
- angular 2.0.0-rc.3
- nativescript-angular: 0.2.1
- Android emulator
return this.http.get('http://etc.').map(res => res.json())
Which produces the error...
com.tns.NativeScriptException: Calling js method onQueryTextSubmit failed
Error: not implemented
And that's thrown in parse5_adapter.js 612:
Parse5DomAdapter.prototype.getCookie = function (name) { throw new Error('not implemented'); };
Not sure why getCookie is getting called, but that's where the error is thrown.
I've tried in nativescript-angular: 0.2.0 as well, same thing.
OK - solved - saw a comment by @vakrilov on #345 : "In vNext you will just have to provide NS_HTTP_PROVIDERS"
In case someone else runs into it...
Swap out HTTP_PROVIDERS for NS_HTTP_PROVIDERS (from 'nativescript-angular/http') in nativeScriptBootstrap
Now just the problem that the list view is not updating when new data comes in... I think I've seen that referenced elsewhere...