https://github.com/jimschubert/example-angular2-babel
https://github.com/jimschubert/example-angular2-babel
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jimschubert/example-angular2-babel
- Owner: jimschubert
- Created: 2015-06-22T01:45:34.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-22T01:45:46.000Z (about 11 years ago)
- Last Synced: 2025-02-15T05:46:21.216Z (over 1 year ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# example-angular2-babel
This is a simple example of using Angular2 with ES6 syntax and compiling it all into a bundle using browserify and babel.
Install:
```
npm install
```
Run:
```
npm start
```
This will run the gulp build task and start a local http server on `http://localhost:8000`. Open a browser and check it out.
## Notes
* Angular2 is imported *precompiled*. This means only your code is running through Babel. There's no real need to reference Angular2's es6 code.
* Your code is bundled with Angular2. This creates a single large JavaScript file. This may not be what you want. You may find it easier to use jspm with client-side module loading and/or transpiling.
* I don't particularly like this approach.