Perfect!
Thanks again Eric.
On Sunday, September 20, 2015 at 10:42:28 PM UTC+1, Eric Martinez wrote:
>
> Martin,
>
> keep the viewBindings, and try the following
>
> - Change your getData method in your service to this
>
> public getData(){
> return this.http.get('http://localhost:8080/data.json').toRx()
> .map((res) => res.json());
> }
>
> - Change your constructor in your component to this
>
> constructor(myService: MyService) {
> myService.getData().subscribe((data) => {
> this.dummy = data.someText;
> });
> }
>
> Give it a try
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.