Ng-token-auth not compatible with Angular 1.6.1? - angularjs

Alright, so I injected Ng-token-auth to my app and now an error shows up into my console:
'$http.get(...).success is not a function.
Doing some reading, Angular deprecated .success method after 1.6 version.
What can I do to make it work? Unfourtanetly I'm using Angular-Material which use 1.6 and cannot go back to a previuos version. What should I do?

After doing some research this was fix on they last commit but is not available in Bower yet. So I had to download myself from their official git site

Related

tether-shepherd not compatible with angular version 1.7.0

Earlier I was using angular version 1.5 and angular sanitize version 1.5. But now I have updated my dependency from version 1.5 to 1.7 for both angular and angular sanitize and in the updated version Shepard cards are not working.
So anybody have any idea if there is any compatibility issue between tether-shepherd 1.8.1 and angular 1.7.
Not working means Shepard card not coming up on page when it is supposed to be.
Thanks in advance...

Angular Google Maps Uncaught ReferenceError: _ is not defined

I am using Maven + npm to use Angular Google Maps. It was working fine until I upgraded all my dependencies to latest version including Angular to 1.5.8
I even tried including underscore as a dependency, but it doesn't seem to be working either.
Inside main.js
var angularGoogleMaps = require('angular-google-maps');
In Package.json
"angular-google-maps":"^2.3.4"
Please suggest me something. I have tried everything I could find on Google, but unable to solve this issue
For anyone looking answer to the problem I faced, here are my findings:
Angular Google Maps 2.3.4 has some compatibility issue with latest lodash version (tested with 4.15.0). Reverting back to 3.8.0 didn't help so I had to switch to angular-google-maps 2.3.3 and it works fine with 4.13.1.
A ticket for the same has been opened at Github, link: _ coudn't be found

AngularJS plugin for intellij 15.0.1 not found

I am trying to install the AngularJS plugin for Intellij IDEA (https://plugins.jetbrains.com/plugin/6971?pr=idea), but am facing the following issues:
when using the plugin browser, IDEA does not find it (only result is Ionic Framework when searching AngularJS)
when downloading and installing manually, I get the following message: "Plugin AngularJS depends on unknown plugin JavaScript". A plugin I cannot, obviously, find.
Is this plugin no longer available for Intellij IDEA?
As mentionned by Lawrence, this is not available for Community edition.

How to update the version of Angular in Ionic Framework?

I am having some issues with the Angular filters, everyone says: is because you are not using angular 1.3.8 or above versions, I just realized my version by doing angular.version on the console and:
Object {full: "1.3.6", major: 1, minor: 3, dot: 6, codeName: "robofunky-danceblaster"} comes up, so, how do I update to 1.3.8 at least ? or update to the latest ?
Is there a way to do that, or I have to work with that version of Angular until the Ionic people updates it ?
ionic.bundle.js is a concatenation of:
ionic.js
angular.js
angular-animate.js
angular-sanitize.js
angular-ui-router.js
ionic-angular.js
If you want to use a newer AngularJS version than the one included in the bundle you can include them separately with preferred version (instead of loading ionic.bundle.js).
Do note that the AngularJS version that is included in the newest Ionic version is the version that is/was used during testing (I assume). So by manually including a newer version Ionic may break.
If you are using Bower to manage your packages you don't want to manually include a different <script> tag for angular.
If you need to override the angular version (and you are using bower) just add angular as a dependancy in your bower.json, same place ionic should be. And then specify the version number. But please note, that as tasseKATT says, it may break things in ionic if you use an angular version different to what ionic is expecting.
If you still wish to do this, you can do it in two ways. Using the bower command line tool or manually.
Bower command line:
In the root of your application you can do the following which will add the latest version of angular to your bower.json
bower install angular --save
Or manually:
"dependencies": {
"ionic": "driftyco/ionic-bower#1.2.4",
"angular": "1.5.0"
}
Of course whether via the bower command or manually, make sure the resulting version now specified in your bower.json is the one you want.
You may find you need to add a conflict resolution in bower.json to choose your version over the one ionic suggests. However, as tasseKATT says, it may break things if you use an angular version different to what ionic is expecting.
Unable to find a suitable version for angular, please choose one:
1) angular#1.4.3 which resolved to 1.4.3 and is required by ionic#1.2.4
2) angular#^1.5.0 which resolved to 1.5.0 and is required by product-picker
3) angular#>= 1.0.8 which resolved to 1.5.0 and is required by angular-ui-router#0.2.13
4) angular#^1.x which resolved to 1.5.0 and is required by angular-local-storage#0.2.5
5) angular#1.5.0 which resolved to 1.5.0 and is required by angular-mocks#1.5.0
6) angular#^1.5.0 which resolved to 1.5.0
Then you choose an option, prefix it with ! to save the resoltion to bower.json, or just add the below, and change it to the version you want:
"resolutions": {
"angular": "1.5.0"
}
So now your project will say "I need angular version X" and then Ionic says I need a different one, but you in your bower.json you specify which to override. If you want to look into this more, look at the bower.json file within bower_components/ionic/bower.json (There is also a .bower.json, not quite sure of the difference here.
Once you have done everything, so a final:
bower update
And this checks that everything is happy and installed. Any other conflicts will then come up at this point, which you can resolve using the above methods.
This is all you need to do:
ionic lib update
see documentation on Github!
Points to note in the excellent Plunker from #tasseKATT above:
the version of angular in index.html e.g. <script src="https://code.angularjs.org/1.5.0-beta.2/angular.js"></script> must precede the inclusion of ionic.bundle.js
you may need to add https://code.angularjs.org:* to your <meta http-equiv="Content-Security-Policy" ...
You can check that you've loaded the version you want in a browser console using angular.version

angular 1.1.x bower dependency configuration

For my yeoman+angular app, I'm trying to add angular 1.1.5 to my bower dependency list. Unfortunately, angular's github page has only provided a bower repository for 1.0.7.
One answer I've seen on another stackoverflow question is to fork angular 1.1.5 into my github account and reference it there. Is there any other way to maintain a reference to an official angular release of 1.1.5?
There is a angular-unstable bower package. https://github.com/johannestroeger/bower-angular-unstable
1.1.5 is an unstable release, so it's not likely you'll be able to use it in a scenario like this in any official capacity. You'll probably have to wait till some of the changes in this branch make it to the stable release for any kind of official repo.
However, forking GitHub is probably a good idea to temporarily allow you to use the 1.1.5 build.

Resources