I have created a service for Angular 2:
import {Injectable} from "angular2/core";
import {Http} from "angular2/http";
import {TaskModel} from "./tasks.model"
@Injectable()
export class TasksDataService {
tasks:Array<any>;
constructor(http:Http) {
this.tasks = [
new TaskModel("Dishes"),
new TaskModel("Cleaning the garage"),
new TaskModel("Mow the grass")
];
}
getTasks():Array<any> {
return this.tasks;
}
}
When I run my program the browser shows:
system.src.js:1049 GET http://localhost:3000/angular2/http.js 404 (Not Found)
I have looked up tutorials and they include angular2/http the same way. Does anyone see what is going wrong?