Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit 8759731

Browse files
committed
Updated fetch of template to move away from deprecated promise syntax
1 parent b0f2625 commit 8759731

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "AngularJS-OAuth2",
3-
"version": "1.2.0",
3+
"version": "1.2.2",
44
"homepage": "https://github.com/JamesRandall/AngularJS-OAuth2",
55
"authors": [
66
"James Randall"

dist/angularJsOAuth2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
function compile() {
340340
var tpl = '<p class="navbar-btn"><a class="{{buttonClass}}" ng-click="signedIn ? signOut() : signIn()"><span href="#" ng-hide="signedIn">{{signInText}}</span><span href="#" ng-show="signedIn">{{signOutText}}</span></a></p>';
341341
if (scope.template) {
342-
$http.get(scope.template, { cache: $templateCache }).success(function(html) {
342+
$http.get(scope.template, { cache: $templateCache }).then(function(html) {
343343
element.html(html);
344344
$compile(element.contents())(scope);
345345
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularjs-oauth2",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Bower and npm package for allowing an AngularJS application to authenticate with an OAuth 2 / Open ID Connect identity provider using the implicit flow.",
55
"main": "dist/angularJsOAuth2.js",
66
"scripts": {

0 commit comments

Comments
 (0)