i'm trying to create plunker that uses routes in angular2 (beta.17 version), for some reason when i trying to put ROUTER_PROVIDERS as dependencies of "App" in "main.ts"
//main entry point
import {bootstrap} from '@angular/platform-browser-dynamic';
import {provide, bind} from 'angular2/core';
import {ROUTER_PROVIDERS, ROUTER_BINDINGS, LocationStrategy, HashLocationStrategy} from 'angular2/router';
import {App} from './app';
bootstrap(App, [ROUTER_PROVIDERS])//<-here
.catch(err => console.error(err));
i'm getting this error: angular2-polyfills.js:349 Error: Invalid provider - only instances of Provider and Type are allowed, got: object Object
What am i missing?
Thanks