Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual studio 2015 / resharper support for angular2

I have several question about vs 2015, reshaper 10 and angular 2.

  1. It exist any syntax highlighting support for html markup in ts file for visual studio 2015 or in resharper 10?

For example when I use multiline string in Component template.

@Component({
    selector: "hello-world",
    template: `
    <ul>
        <li *ngFor="#name of names">Hello {{name}}</li>
    </ul>
    `
})
  1. When I use ng2 keywords such as #inputName, (click)="add(inputName)" in html file visual studio show errors in markup. Any way how to fix this problem. It’s annoying.

  2. I would like have intellisense support for ng2 in html. I tried find aby resharper plugin but without success.

like image 754
rco Avatar asked Feb 17 '16 16:02

rco


1 Answers

I just downloaded the latest version of ReSharper 10.1 EAP and it now has support for Angular 2 annotations.

I took a screenshot from my code window. Looks much better! enter image description here

Unfortunately, it doesn't appear to support the binding tags and proper Intellisense in HTML template files yet.

like image 52
base2 Avatar answered Oct 22 '22 08:10

base2