Like Dislike
by chrisguzman
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script>
<script src="https://cdn.firebase.com/js/client/1.0.17/firebase.js"></script>
<script src="https://cdn.firebase.com/libs/angularfire/0.7.1/angularfire.min.js"></script>
<section ng-app="myapp" ng-controller="IdeaController">
<div ng-repeat="idea in ideas">
<h3>{{idea.value}}</h3>
</div>
</section>
JavaScript
var myapp = angular.module('myapp', ["firebase"]);
var lst = [{
value: 'The Richmond',
id: 'the-richmond'
}, {
value: 'The Presidio',
id: 'the-presidio'
}, {
value: 'North Beach',
id: 'north-beach'
}, {
value: 'Golden Gate Park',
id: 'ggp'
}, {
value: 'NOPA',
id: 'nopa'
}, {
value: 'Tenderloin',
id: 'tenderloin'
}, {
value: 'The Sunset',
id: 'the-sunset'
}, {
value: 'The Haight',
id: 'the-haight'
}, {
value: 'SOMA',
id: 'soma'
}, {
value: 'The Mission',
id: 'the-mission'
}, {
value: 'Financial District',
id: 'fidi'
}, {
value: 'Nob Hill',
id: 'nob-hill',
}, {
value: 'Russian Hill',
id: 'russian-hill'
}, {
value: 'Chinatown',
id: 'chinatown'
}, {
value: 'The Marina',
id: 'marina'
}, {
value: 'Hayes Valley',
id: 'hayes-valley'
}];
function IdeaController($scope,$firebase) {
$scope.ideas = lst;
}