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

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..
My Blogs - https://code-sample.com and https://code-sample.xyz
My Book1 - BEST SELLING ANGULAR BOOK (INCLUDING ALL VERSIONS 2, 4, 5, 6, 7)
My Book2 - ANGULAR 2 INTERVIEW QUESTIONS BOOK - Both Books are Available on WorldWide.

www.code-sample.com/. Powered by Blogger.