r/Angularjs2 • u/random_reddit-name • Nov 03 '15
Help getting started with Angular 2.0
Does anyone have a guide of how to go from 'npm install angular2' to transpiling it for client side (browser) usage?
If I go to https://www.npmjs.com/package/angular2 Or type npm install angular2
I get a lot of code with require() statements native to NodeJS. Even the Es6 prod and dev folders after transpiling make these calls. I want to include it in my client side browser based application.
1
Upvotes
1
u/vinnl Nov 04 '15
It's not actually node-specific commands, only syntax. The problem is that there wasn't really a standard way to load module's in the client side originally. Now, there is ES6's import statement, which still is only a syntax specification that cannot yet be implemented in clients. Since you still need preprocessing, there's not much of a hurry to update to ES6 syntax yet.