Angular2 polyfill for Angular1
Please note, this is a work in progress library
$ npm install --save angular2-polyfill
$ jspm install npm:angular2-polyfill
AppComponent is the base component for our entire application. The following content is stored in
we are using
ui-router, the only thing we add as a template is the place where the views should be rendered.
HomeComponent simply renders the title defined in the class. Please note that in the background, we use the
controllerAs syntax. The value of this property
is consistent with the Angular 1.5 component value. The following content is stored in
bootstrap method from the
upgrade platform. This allows you to rewrite your entire application at your own
pace. It accepts the base angular module as first argument, and the component/service/... as second argument. This way, you can
keep the other component as they are now and refactor them in the future.
HomeComponentis being bootstrapped automatically because it is referred to in the
@RouteConfigdecorator of the
We are using SystemJS as module loader. Feel free to use something else.
- Tour of Heroes - Tour of Heroes implementation
- Tour of Heroes - Tour of Heroes
- Routing - Routing example
MIT © Sam Verschueren