Find angularjs version - angularjs

I tried in browser console:
angular.version
And I got below
codeName : "foam-acceleration" dot : 3 full : "1.4.3" major : 1 minor
: 4
So what angular version is used? Is it angular2 or 4 or any other?
Thanks

You can console 'angular.version.full' for getting version of angular being used on that webpage.

Neither. It is not angular 2 or 4. It is AngularJS 1.4.3, which is what we commonly refer to as AngularJS 1.x

Your current Angular version is 1.4.3.
https://docs.angularjs.org/api/ng/object/angular.version
full is the current fullname version.
major, minor and dot are the 1.4.3 (major.minor.dot)

Related

Angular Js - Routing Issue with different old version

I am new to AngularJS and was looking at the "Miguel Castro–AngularJS for ASP.NET MVC Developers" sample downloaded from "http://www.melvicorp.com/downloads.html".
When running the code sample of project 2 (AngularRouting) from Miguel's sample with new version of AngularJs (installed using NuGet), the routing doesn't work and it gives the following error:
[$location:nobase] http://errors.angularjs.org/1.5.6/$location/nobase
If I replace the new version of AngularJs Script files with older ones from Miguel's sample project, it works just fine.
I has clearly something to do with version, but what it is exactly?
Thanks

Angular 2 syntax helpers for Angular 1.2

My application is in angular version 1.2. We are planning to make any new changes using typescript and angular 2 syntax helpers (like ng-metadata or angular2-now)
Unfortunately the above syntax helpers only works for angular version 1.4+. Is there any such helpers available for angular 1.2?
try this Angular-Typescript project on github, and my advice is to updated your project to 1.4 or above to make it easier for you!

angular 2 with modules from angular 1

Using angularjs 2 with typescript don't know how to use angular 1 modules like ui-grid or fullcalendar.
I can add module ui-grid with typescript?
Have a look at the migration guide:
AngularJS 1 to Angular 2 Upgrade Strategy
, and specifically this section: "Wrapping: AngularJS 1 to Angular 2"
You might also find this post useful: Angular 1 and Angular 2 integration: the path to seamless upgrade
PrimeNG provides FullCalendar integration and a DataTable, code is open source so you can review how the integration is done. DataTable is native though. http://www.primefaces.org/primeng/#/schedule

AngularJS plugin for WebStorm

I am using AngularJS with WebStorm, and my question is:
How do I add the AngularJS plugin for intellisense keyword for the AngularJS directives in the JetBrains WebStorm?
These links may help you:
http://plugins.jetbrains.com/plugin/6971
http://blog.jetbrains.com/blog/2013/04/02/mastering-webstorm-for-angularjs-youtube-livestream-event-tuesday-april-9/
https://github.com/johnlindquist/angularjs-plugin
https://groups.google.com/forum/#!topic/angular/c_suah3j0Xc
http://pkozlowskios.wordpress.com/2012/07/15/live-templates-for-angular-js-in-webstorm/
Here is simple Steps to add Angular Plugin
Step 1 : Just download the JetBrains WebStorm plugin from http://plugins.jetbrains.com/plugin/6971
Step 2 : Goto the WebStorm File->Settings->IDE Settings->Plugins
Step 3 : Click Install plugin from disk and select the zip files
Step 4 : Restart the WebStorm
You are done :)
John recommends not to do it any other way than his but his instructions are as always a bit terse. I found this to be a much better guide. It repeats what john suggests. Note that this step is easy to miss if you dont remember to scroll:
Navigate to the bottom of the panel and select the “Browse Repositories..” button. This spawns a new window. Double click on the Angular.js plugin

Angular JS ui-router on Internet Explorer 8

Has anyone gotten the Angular JS ui-router quick-start to run in IE8? The quick start's here:
ui-router quick-start
It's working in chrome but not in IE8.
Thanks!
[Edit]
I have read the ie documentation under angular js but the fix provided doesn't seem to fix the issue (missing forEach method). The fix only addresses issues with angular js and not angular-ui-router.
The only thing that works is from an answer here: AngularJS - IE8 html template. The basically provides an implementation for forEach which is not supported in IE.
Can you try building off of master? There was a pull request merged just after the last release (https://github.com/angular-ui/ui-router/pull/392) that resolved some IE8 issues. Everything else should work fine AFAIK.

Resources