Skip to content

Instantly share code, notes, and snippets.

@scionwest
Created December 31, 2016 22:08
Show Gist options
  • Save scionwest/9710209d03d19a08a2440aa40ed8e6b3 to your computer and use it in GitHub Desktop.
Save scionwest/9710209d03d19a08a2440aa40ed8e6b3 to your computer and use it in GitHub Desktop.
<div>
<h1>Account</h1>
<div ng-repeat="accountType in accountTypes">
<div>{{acountType}} type</div>
<div>
{{accountTypes}}
</div>
</div>
</div>
(function () {
angular.module('app')
.controller('AccountSetupController', AccountSetupController);
function AccountSetupController($scope, accountService) {
$scope.accountTypes = ['Subscriber', 'Provider'];
}
})();
Account
type
["Subscriber","Provider"]
type
["Subscriber","Provider"]
<div class="ng-scope">
<h1>Account</h1>
<!-- ngRepeat: accountType in accountTypes --><div ng-repeat="accountType in accountTypes" class="ng-scope">
<div class="ng-binding"> type</div>
<div class="ng-binding">
["Subscriber","Provider"]
</div>
</div><!-- end ngRepeat: accountType in accountTypes --><div ng-repeat="accountType in accountTypes" class="ng-scope">
<div class="ng-binding"> type</div>
<div class="ng-binding">
["Subscriber","Provider"]
</div>
</div><!-- end ngRepeat: accountType in accountTypes -->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment