All, 

I'm trying to write a basic angular2 js app . 

But I'm getting this strange error 

When i try to use a url with parameters like : 
http://localhost:3000/visit/:id i get an error

ReferenceError: System is not defined

My configuration 

import {Component} from 'angular2/core';
import {HomeComponent} from './home.component';
import {NavbarComponent} from './navbar.component';
import {ROUTER_DIRECTIVES, RouteConfig} from "angular2/router";
import {VisitDetailComponent} from "./visits/visitdetail.component";
import {VisitsOverviewComponent} from "./visits/visitsoverview.component";
import {VisitsService} from "./services/visits.service";

@Component({
    selector: 'my-app',
    template: `
               <div class="container">
               <hib-navbar></hib-navbar>
               <router-outlet></router-outlet>
               </div>`,
    directives : 
[ROUTER_DIRECTIVES,HomeComponent,NavbarComponent,VisitsOverviewComponent,VisitDetailComponent],
    providers: [VisitsService]
})

@RouteConfig([
    {path:'/home', name: 'Home', component: HomeComponent},
    {path:'/visits', name: 'Visits', component: VisitsOverviewComponent},
    {path:'/visit/:id', name: 'VisitDetail', component: VisitDetailComponent}
])
export class AppComponent { }


Any idea what i'm doing wrong ? 

Kind regards 

Bert

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to