Skip to content

Instantly share code, notes, and snippets.

@mbuttler
Created August 6, 2015 19:20
Show Gist options
  • Save mbuttler/e2008fa4ab433fceb29a to your computer and use it in GitHub Desktop.
Save mbuttler/e2008fa4ab433fceb29a to your computer and use it in GitHub Desktop.
MainController.js in Built-in and Custom Directives
app.controller('MainController', ['$scope', function($scope) {
$scope.move = {
icon: 'img/move.jpg',
title: 'MOVE',
developer: 'MOVE, Inc.',
price: 0.99
};
$scope.shutterbugg = {
icon: 'img/shutterbugg.jpg',
title: 'Shutterbugg',
developer: 'Chico Dusty',
price: 2.99
};
$scope.gameboard = {
icon: 'img/gameboard.jpg',
title: 'Gameboard',
developer: 'Armando P.',
price: 1.99
};
$scope.forecast = {
icon: 'img/forecast.jpg',
title: 'Forecast',
developer: 'Forecast',
price: 1.99
};
$scope.apps = [
{
icon:'img/move.jpg',
title: 'MOVE',
developer: 'MOVE, Inc.',
price: 0.99
},
{
icon: 'img/shutterbugg.jpg',
title: 'Shutterbugg',
developer: 'Chico Dusty',
price: 2.99
},
{
icon: '/img/gameboard.jpg',
title: 'Jamesboard',
developer: 'James Armando',
price: 0.99
},
{
icon: '/img/forecast.jpg',
title: 'SJBWeather',
developer: 'Steve J Bernstein',
price: 4.20
}
]
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment