microsoft / angular2-in-visual-studio Goto Github PK
View Code? Open in Web Editor NEWSample project for using the Angular 2 Language Service in Visual Studio
License: MIT License
Sample project for using the Angular 2 Language Service in Visual Studio
License: MIT License
Server Side rendering in the example doesn't work! In the iis there is not file. Is the publishing never tested?
I added the devDependency @angular/language-service to the package.json.
In the tsconfig.json, I added
"plugins": [
{ "name": "@angular/language-service" }
]
Are there any other things to do? Could not find further hints in this demo project.
Also the use of the ngml extension is not fine.
I assume you find the corresponding component just by filename?
So why not support all .html files which have a corresponding .ts file?
As the title says, how do you build/serve a project with ngml files without getting this:
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
error?
Upgraded to VS 15.5 this morning. I'd like to use these features on an existing Angular 2 app (based on the .NET Core 2.0 SPA template) but I can't tell how to enable them.
Not sure if this is the correct place to make a note of this, as if its an issue its a VS issue. I didn't follow the instructions to the letter but this might indicate a potential issue?
Rather than opening the cloned folded after npm install
I npm install
ed from the package manager console after having opened the cloned folder. Then opening app/app.component.ts. This meant that I didn't get any of the semantic warning mentioned. Closing visual studio after this and reopening, did show the semantic warnings.
I am considering moving whole team to VS instead of VSCode. I tested converting one of my components to .ngml and then enabling language service in tsconfig. However the entire ngml now complains since it's expecting typescript and not html...
the errors are for every single different html element
I also can not follow definitions or anything.
Its really annoying that to us VS we have to change all the extensions to ngml and then too this does not work properly.
P.S. i'm using the new Angular CLI dotnet core template shipped with the dotnet cli. All TS languge service stuff works.
The CLI by default generates .html
not .ngml
.
It's not a big deal, just wondering if there's a way it would work with .html
templates.
Thanks!
Joe
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.