简体   繁体   中英

Importing modules in TypeScript

I`m working with the tutorial http://www.codeproject.com/Tips/1026938/AngularJS-Getting-Started-with-Visual-Studio and get the problem this line:

import {Component, View, bootstrap, NgFor} from "angular2/angular2";

and I got the problem in this line: TS2307 Cannot find module 'angular2/angular2' I have exactly same files and folders, as in tutorial. I try "typings/angular2/angular2", but this also didn`t help.

See the step-4 in your-tutorial-link . These settings are required for visual studio to detect the module.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM