Home:ALL Converter>Angular 2 Firebase or AngularFire Maximum call stack size exceeded

Angular 2 Firebase or AngularFire Maximum call stack size exceeded

Ask Time:2015-03-22T20:19:21         Author:Daniel Billingham

Json Formatter

I am encountering an error when trying to hook David Easts TODO Angular2 demo up with Firebase.

Maximum call stack size exceeded

The repo can be found here: https://github.com/davideast/ng2do

All I have done differently is: import bind, AngularFire and FirebaseArray:

import {bind} from 'angular2/di';
import {AngularFire, FirebaseArray} from 'firebase/AngularFire';

And register componentServices:

@Component({
  selector: 'todo-app',
  componentServices: [
    AngularFire,
    bind(Firebase).toValue(new Firebase('https://webapi.firebaseio-demo.com/test'))
  ]
})

This results in an error:

Maximum call stack size exceeded error.

Author:Daniel Billingham,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/29194267/angular-2-firebase-or-angularfire-maximum-call-stack-size-exceeded
yy