Angularjs cannot find intellisense - angularjs

I am using visual studio 2010. When i am going to install angularjs and Angularjs UI Bootstrap from Microsoft nuget. In my index page i already set angularjs.min.js reference but angularjs intellisense not working. Please help me

i had this issue.
The visual studio IDE will scan any js files referenced in the HTML files and use them if neccesary (for the intellisense etc).
My problem was i was referencing Angularjs using the CDN/http:// addresses and thus Visual studio did not have any information on angular.
Try downloading the angularjs js file directly and include in your project and reference in your index.html, rebuild (just in case) and try again and hopefully it should work.
Hope i helped.

Related

table-scroll.min.js and table-scroll.js files are missing from my Visual Studio 2019 MVC project

table-scroll.min.js and table-scroll.js files are missing from my Visual Studio 2019 MVC project.
I have no Idea where they came from, but I have added NuGet packages. Also, my layout page and styles of the project (web application) are not functioning as expected. As a result, the front end of the application is not displaying as expected.
I have searched online, but could not come up with a thing that is working for me.
I made a backup to my project previously, so I took the missing files from there, and added them to my current project. That solved the problem, and the web application displays as
expected.
I lost the files when I was using a software version control, the mistake has to do
with checking some files with the project. The needed files where not added to the checked in software.

Embedding a JavaScript File as a Resource in an Assembly in visual studio 2017

I'm unable to add reference of angular js file location in visual studio 2017 community as I usually do in visual studio 2015
Please check this: Can't drag AngularJS intellisense reference to code window
Van Kichline [MSFT]: With the new JavaScript language service these references are no longer required, so they aren't written to the file.
So we can know this behavior is by design, which means the reference line will not auto create, we can directly invoke the contents like function inside each .js file among the whole project, you can have a try with it, this works in my VS 2017.

Visual Studio 2013 and Angular

I need to work with Visual Studio 2013.
I have already an scaffoldded Angular + Gulp project created with yeoman
Now i need to edit with visual studio.
Could you please explain me how to enable angular on Visual studio?
You don't need to "enable" angular for VS.
It is just editing text files in a certain folder structure.
Just import the folder as a new project or whatever suits your needs.
(In theory you could develop an Angular app with any text editor).
If you need intellisense or other helping technology look for an appropriate add-on on nuget. (e.g. ng intellisense Add-on )

Getting angular documentation (intellisense) when writing Javascript?

Ok so I've read Intellisense for angular.js does not work in a javascript file and googled and even installed https://resharper-plugins.jetbrains.com/packages/AngularJS/ (I have resharper).
I do have basic code completion of angular stuff when writing js, and the above extension gives nice code completion for html directives in the html files. However I'm wondering if there's anything that could give me real documentation on the fly, like intellisense does for C#, something that pops up and goes something like:
".directive - this method is used to define custom directives.
Parameters: directive name - a normalized string..."
etc.
I succeeded until getting intellisense but not documentation.
IN VS 2015 open Tools -> Options -> Text Editor -> JavaScript -> Intellisense -> References.
Under the Add section open "C:\Program Files (x86)\Microsoft Visual Studio 14.0\JavaScript\References" and add "angular.intellisense.js".
If you don't have "angular.intellisense.js" see the below articles to get the file.
http://bartwullems.blogspot.com/2015/02/angularjs-intellisense-in-visual-studio.html
https://blogs.msdn.microsoft.com/visualstudio/2015/02/05/using-angularjs-in-visual-studio-2013/

html2js equivalent for Visual Studio to compile AngularJS templates

Is there a Visual Studio equivalent of html2js with grunt to compile Angular template files, as used, for example, in this angular app?
I'm asking this question because it took me a while to find the excellent solution I eventually came across, which I've put in my answer below. I hope posting it here will make it easier to find on Google.
I've previously used grunt with html2js to compile Angular templates. On my current project we have to use Visual Studio. I'm using the AngularJS SPA Template, available here.
After some searching, I found this excellent blog post and related github project, which solved the problem brilliantly. My thanks to Boyan Mihaylov, the author.

Resources