Are you ready to set up your very first Angular 2 application? Let's take a look at bootstrapping a simple application with Angular 2 components.
Is there a different from defining a View decorator with template like you did to just simply add a "template" value to the @Component object like this:
template: 'First angular 2 app!'
@View decorator has been (thankfully) deprecated in favor of the single
@Component decorator for defining a component.
Did I miss an initial setup lesson? I can't get any of this to work, and I suspect it's because I haven't setup my project the way you have. I don't know what is in your "config.js" file, and I don't know if I've downloaded the correct versions of the dependencies. I just looked at what's in your index.html tried to bower install all of them... When I load my index.html I get a blank page, with no error, no nothing. Is this code downloadable so I can compare? Or is there another lesson before this that explains how you setup your initial index.html and it's dependencies? Thanks!
Hello! Will this video and others in this course get updated soon? To work with the new Angular 2 beta? Btw I cloned the repo and don't see the Hello World folder. I just see
src > lessons > 02-first-component as the first folder. Also in Atom there are some warnings about stuff missing in the tsconfig.
Cannot find Angular2/core
I experienced the same thing. Things I did to get this working again from the github repo:
1) created the directory and main.js file manually from the video
2) add this line to app.ts and commented out the rest
3) either revert typescript version or add this line to the top of promise.d.ts
declare var Promise: PromiseConstructor;
See this github issue for more infromation:
After executing the example as said in github readme, I don't see any webpage.
npm start > email@example.com start /Users/karamba/code/angular2 > webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 8080 --content-base src 70% 2/2 build moduleshttp://localhost:8080/
When I curl it, I get:
curl -v http://localhost:8080/ * Trying ::1... * Connected to localhost (::1) port 8080 (#0) > GET / HTTP/1.1 > Host: localhost:8080 > User-Agent: curl/7.43.0 > Accept: */* > * Empty reply from server * Connection #0 to host localhost left intact curl: (52) Empty reply from server
I'm using node v5.11.1 and npm 3.8.6. Help :) ?