Skip to content

Instantly share code, notes, and snippets.

@garciadanny
Last active August 29, 2015 14:09
Show Gist options
  • Save garciadanny/b5e238f4031648647c24 to your computer and use it in GitHub Desktop.
Save garciadanny/b5e238f4031648647c24 to your computer and use it in GitHub Desktop.
BlogPost: AngularJS Custom Directives
var myApp = angular.module('myApp', ['ui.utils']);
myApp.controller('myController', ['$scope', function($scope) {
$scope.profiles = [
{
name: 'Profile 1',
city: 'Denver',
status: 'Active'
},
{
name: 'Profile 2',
city: 'New York',
status: 'Active'
},
{
name: 'Profile 3',
city: 'Orlando',
status: 'Inactive'
},
.
.
.
]
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment