Cannot find module angular2/angular2'

Cannot find module 'angular2/angular2'

I am developing an angular2 aap with MVC5. I have register.ts file and the error detail as given below.

    import {Component, View} from 'angular2/angular2';

    @Component({
          selector: 'register'
    })
    @View({
         templateUrl: '../scripts/register.html'
    })

    export class register {

    }

My bootstrap.ts file as given below

    import {bootstrap} from 'angular2/angular2';

    import {register} from '/components/register';

    bootstrap(login);

The solution as given below.

It just changed to module to as given below

import {Component, View} from 'angular2/core'

and also changed bootstrap to as given below

import {bootstrap} from 'angular2/platform/browser'

For more detail, go to below links



I think, It might help you! Thank you!

ANIL SINGH

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - http://www.code-sample.com and http://www.code-sample.xyz
My Books - Buy Books Online at Best Prices

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.