Skip to content

Commit 340a188

Browse files
committed
Changed some parameters on directive to make their values dynamic.
1 parent 53c37e1 commit 340a188

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/scripts/directives/oauth.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ directives.directive('oauth', function(AccessToken, Endpoint, Profile, $location
99
replace: true,
1010
scope: {
1111
site: '@', // (required) set the oauth server host (e.g. http://oauth.example.com)
12-
clientId: '@', // (required) client id
13-
redirectUri: '@', // (required) client redirect uri
12+
clientId: '=', // (required) client id
13+
redirectUri: '=', // (required) client redirect uri
1414
responseType: '@', // (optional) response type, defaults to token (use 'token' for implicit flow and 'code' for authorization code flow
1515
scope: '@', // (optional) scope
16-
profileUri: '@', // (optional) user profile uri (e.g http://example.com/me)
16+
profileUri: '=', // (optional) user profile uri (e.g http://example.com/me)
1717
template: '@', // (optional) template to render (e.g views/templates/default.html)
1818
text: '@', // (optional) login text
1919
authorizePath: '@', // (optional) authorization url

dist/oauth-ng.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* oauth-ng - v0.3.6 - 2014-12-03 */
1+
/* oauth-ng - v0.3.6 - 2014-12-08 */
22

33
'use strict';
44

@@ -304,11 +304,11 @@ directives.directive('oauth', function(AccessToken, Endpoint, Profile, $location
304304
replace: true,
305305
scope: {
306306
site: '@', // (required) set the oauth server host (e.g. http://oauth.example.com)
307-
clientId: '@', // (required) client id
308-
redirectUri: '@', // (required) client redirect uri
307+
clientId: '=', // (required) client id
308+
redirectUri: '=', // (required) client redirect uri
309309
responseType: '@', // (optional) response type, defaults to token (use 'token' for implicit flow and 'code' for authorization code flow
310310
scope: '@', // (optional) scope
311-
profileUri: '@', // (optional) user profile uri (e.g http://example.com/me)
311+
profileUri: '=', // (optional) user profile uri (e.g http://example.com/me)
312312
template: '@', // (optional) template to render (e.g bower_components/oauth-ng/dist/views/templates/default.html)
313313
text: '@', // (optional) login text
314314
authorizePath: '@', // (optional) authorization url

0 commit comments

Comments
 (0)