Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

HAWKULAR-140 - Consuming the provider from ui-services for accounts. #115

Merged
merged 1 commit into from May 21, 2015

Conversation

jpkrohling
Copy link
Contributor

No description provided.

'$rootScope', '$scope', 'HawkularAccounts.OrganizationService', '$log', '$location',
($rootScope, $scope, OrganizationService, $log, $location) => {
'$rootScope', '$scope', '$log', '$location', 'HawkularAccount',
($rootScope, $scope, $log, $location, HawkularAccount) => {

$scope.organizations = [];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Angular best practices is not to use $scope at all. But instead, use 'this' and 'ControllerAs' syntax.
For reference: http://toddmotto.com/digging-into-angulars-controller-as-syntax/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created https://issues.jboss.org/browse/HAWKULAR-240 for this, as this would require more changes than this isolated part.

mtho11 added a commit that referenced this pull request May 21, 2015
HAWKULAR-140 - Consuming the provider from ui-services for accounts.
@mtho11 mtho11 merged commit 836226a into hawkular:master May 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants