johnpapa / angular2-force Goto Github PK
View Code? Open in Web Editor NEWngConf 2016 live coding demo
License: MIT License
ngConf 2016 live coding demo
License: MIT License
I have started with angular2-quickstart and then came to this. One major issue is I have to download again and again when I switch from one working directory to other.
Angular 2 newbie here.
Thanks John Papa for awesome tutorial. I don't know if this is the right place to post this, but I am posting anyway.
I'm using webpack and following the ng-conf presentation. When I run npm start
I get following error
ERROR in ./src/app/service/mock-data-service.service.ts
(13,25): error TS1005: '=>' expected.
ERROR in ./src/app/service/mock-data-service.service.ts
(13,27): error TS1005: ';' expected.
ERROR in ./src/app/service/mock-data-service.service.ts
(13,40): error TS1005: ';' expected.
ERROR in ./src/app/service/mock-data-service.service.ts
(13,30): error TS7027: Unreachable code detected.
ERROR in ./src/app/service/mock-data-service.service.ts
(13,30): error TS2304: Cannot find name 'res'.
Child html-webpack-plugin for "index.html":
chunk {0} index.html 512 kB
+ 3 hidden modules
webpack: bundle is now VALID.
and my contents in mock-data-service.service.ts
are
import { Injectable } from '@angular/core';
import {Http, Response} from '@angular/http';
import 'rxjs/add/operator/map';
@Injectable()
export class MockDataService {
constructor(private http: Http) {
}
getMockData() {
return this.http.get('./src/database/mockdata.json')
.map((res: Response)) => res.json());
}
}
You can view the full picture here
If the length of a character name is long enough, the text will overflow behind the next item in the list. This behaviour can be seen in item 19, for example.
npm install
npm start
and i get the error (on windows)
app/heroes/hero.component.ts(10,39): error TS2304: Cannot find name 'OnInit'.
What have i done wrong?
using
(node v4.3.1
npm v3.8.8)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.