Sample project for using the Angular 2 Language Service in Visual Studio
Перейти к файлу
Ryan Cavanaugh 0e9c6070cd Start tour 2017-10-18 14:09:57 -07:00
src Start tour 2017-10-18 14:09:57 -07:00
tour_images Start tour 2017-10-18 14:09:57 -07:00
.editorconfig Initial commit 2017-10-18 13:01:59 -07:00
.gitignore Update gitignore 2017-10-18 13:45:35 -07:00
LICENSE Initial commit 2017-10-18 10:08:32 -07:00
README.md Start tour 2017-10-18 14:09:57 -07:00
package-lock.json Initial commit 2017-10-18 13:01:59 -07:00
package.json Initial commit 2017-10-18 13:01:59 -07:00
tsconfig.aot.json Initial commit 2017-10-18 13:01:59 -07:00
tsconfig.json Initial commit 2017-10-18 13:01:59 -07:00
webpack.config.js Initial commit 2017-10-18 13:01:59 -07:00
yarn.lock Initial commit 2017-10-18 13:01:59 -07:00

README.md

Angular 2 in Visual Studio Sample Project

Introduction

This repo is a sample project that shows off Angular 2 Language Service support in Visual Studio.

Usage

Prerequisite: Visual Studio 2017 Update 5 or later

To use this project:

  • git clone https://github.com/Microsoft/angular2-in-visual-studio.git
  • cd angular2-in-visual-studio
  • npm install
  • In Visual Studio, "Open Folder" (Ctrl-Alt-Shift-O or File -> Open -> Folder...)
  • Select the cloned directory (not src)

Tour

Once the project is opened, you can observe these new behaviors

Semantic Warnings

Open src\app\app.component.ts. The Angular2 language service warns you that the InlineComponent class doesn't belong to a module:

Error about missing module

Inline Templates

.ngml Files

Errors

Completions

Navigation