Giter Site home page Giter Site logo

Comments (7)

guillep2k avatar guillep2k commented on June 20, 2024 1

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.

davidarivera avatar davidarivera commented on June 20, 2024

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.

ipoweb avatar ipoweb commented on June 20, 2024

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

from angular2-in-visual-studio.

mrxrow avatar mrxrow commented on June 20, 2024

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

from angular2-in-visual-studio.

maxstee avatar maxstee commented on June 20, 2024

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

from angular2-in-visual-studio.

guillep2k avatar guillep2k commented on June 20, 2024

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.

kadamgreene avatar kadamgreene commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.