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

Commit 2e4eb62

Browse files
committed
Fixed issue on template retrieval
1 parent 8759731 commit 2e4eb62

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
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.2",
3+
"version": "1.2.3",
44
"homepage": "https://github.com/JamesRandall/AngularJS-OAuth2",
55
"authors": [
66
"James Randall"

dist/angularJsOAuth2.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,10 @@
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 }).then(function(html) {
343-
element.html(html);
344-
$compile(element.contents())(scope);
345-
});
342+
$http.get(scope.template, { cache: $templateCache }).then(function(templateResult) {
343+
element.html(r.templateResult);
344+
$compile(element.contents())(scope);
345+
});
346346
} else {
347347
element.html(tpl);
348348
$compile(element.contents())(scope);

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.2",
3+
"version": "1.2.3",
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)