Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

How to use features on existing Angular 2 .NET Core 2.0 app #3

Open
kevinsmgov opened this issue Dec 5, 2017 · 7 comments
Open

How to use features on existing Angular 2 .NET Core 2.0 app #3

kevinsmgov opened this issue Dec 5, 2017 · 7 comments

Comments

@kevinsmgov
Copy link

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.

@davidarivera
Copy link

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?

@ipoweb
Copy link

ipoweb commented Dec 11, 2017

same problem, do i need to activate option in visual studio ?

@mrxrow
Copy link

mrxrow commented Dec 13, 2017

not working after upgrade to VS 15.5. How to enable this features?

@maxstee
Copy link

maxstee commented Jan 17, 2018

With VS 15.5 it does not work even with this cloned repository

@guillep2k
Copy link

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.

@guillep2k
Copy link

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.

@kadamgreene
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants