Skip to content Skip to sidebar Skip to footer

When To Use @angular Tags In Angular 2?

I was trying to bootstrap my application using code below in a boot.ts file: import {bootstrap} from 'angular2/platform/browser' import {ROUTER_PROVIDERS} from 'angular2/router'

Solution 1:

@angular is for RC (release candidate) versions and angular2 for beta versions.

In RC versions, for example, angular2/core becomes @angular/core. You can also notice that the SystemJS configuration is different since you don't have bundled JS files.

Now you need to configure Angular2 modules into map and packages blocks of your SystemJS configuration. See this link for more details:

Solution 2:

This is new for Angular2 versions after beta.x, and therefore => Angular2 RC.0

Versions <= Angular2 beta.x use angular2

Post a Comment for "When To Use @angular Tags In Angular 2?"