Comments (7)
I've added:
"@angular/language-service": "^5.2.4",
to my package.json. I've matched the angular version I use, but at the time of this writing there's 5.2.5 of angular and only 5.2.4 of language-service (check github if in doubt).
I've also added the following to my tsconfig.json (inside "compilerOptions"{}):
"plugins": [
{ "name": "@angular/language-service" }
],
"typeRoots": [
"node_modules/@types"
],
(I had some of the other settings from before, so I don't know which ones are relevant).
Finally, I've changed my webpack.config.js from:
{ test: /\.html$/, use: 'html-loader?minimize=false' },
to:
{ test: /\.(html|ngml)$/, use: 'html-loader?minimize=false' },
Then I've cleaned my project, deleted the dist folders, closed and re-opened the solution. So far some of the goodies work fine; for example the @component warnings and the inline template syntax check. But the ngml autocomplete does not, though. If I find a way to make it work, I'll post it here.
from angular2-in-visual-studio.
Same question. I don't see templates for ngml files, nor do I get the intellisense if I just rename an html file. How exactly is this new feature supposed to be accessed?
from angular2-in-visual-studio.
same problem, do i need to activate option in visual studio ?
from angular2-in-visual-studio.
not working after upgrade to VS 15.5. How to enable this features?
from angular2-in-visual-studio.
With VS 15.5 it does not work even with this cloned repository
from angular2-in-visual-studio.
Update: the ngml autocomplete now works without me doing anything besides what I posted before. I guess it just needed a little time to gather all the relevant information.
from angular2-in-visual-studio.
I've got Visual Studio 2017 15.5.7 and no language service plugins work. I've tried following what people are saying here and still no intellisense of any type.
from angular2-in-visual-studio.
Related Issues (8)
- New behaviour not visible if npm install from VS
- [Question] Is `.ngml` a requirement for intellisense in Angular 2 Language Service? HOT 6
- How does one build with ngml files?
- How does one build with ngml files? HOT 5
- How to enable this in an existing angular-cli application (within an ASP.NET MVC app)?
- NGML Bug
- SSR doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-in-visual-studio.