Skip to content

Instantly share code, notes, and snippets.

@egm0121
Created July 23, 2013 13:46
Show Gist options
  • Select an option

  • Save egm0121/6062452 to your computer and use it in GitHub Desktop.

Select an option

Save egm0121/6062452 to your computer and use it in GitHub Desktop.
ng-repeat of props in {} keep no default sorting
$scope.objKeys= function(o){
return angular.isObject(o) ? Object.keys(o) : [];
};
<div class="row-fluid" ng-repeat="name in objKeys(popoverInfo)" ng-init="value = popoverInfo[name]">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment