Skip to content

Instantly share code, notes, and snippets.

@urish
Last active November 22, 2015 00:33
Show Gist options
  • Save urish/5f06c537d77a48aa8a52 to your computer and use it in GitHub Desktop.
Save urish/5f06c537d77a48aa8a52 to your computer and use it in GitHub Desktop.
AngularJS 2.0 Hello World How To
  1. Clone the AngularJS 2.0 source tree:

    git clone https://github.com/angular/angular

  2. inside the project directory, run npm install

  3. inside gulpfile.js, replace the 'build' task (near the end of the file) with the following one:

    gulp.task('build', ['jsRuntime/build', 'modules/build.dev.js']);

    This will remove all the Dart stuff from build (unless you want to install the Dart SDK)

  4. run gulp build

  5. run gulp serve

  6. go to http://localhost:8000/js/examples/lib/hello_world/ and enjoy!

The sources for the example are in modules/examples/src/hello_world. You need to re-run gulp build whenever you change them.

Don't forget to share your experiences with me :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment