Answering this question : Learn AngularJS coursera Assignment 3
http://stackoverflow.com/questions/38425528/learn-angularjs-coursera-assignment-3
by Suman Kumar
HTML
<div ng-app='confusionApp' ng-controller='AboutController'>
<div ng-repeat="leader in leaders">
{{leader.name}}
</div>
</div>
JavaScript
angular.module('confusionApp',[])
.controller('AboutController', ['$scope', 'corporateFactory', function($scope, corporateFactory){
$scope.leaders= corporateFactory.getLeaders();
}])
.factory('corporateFactory', function() {
var leadership = [
{
name: "Peter Pan",
image: 'images/alberto.png',
designation: "Chief Epicurious Officer",
abbr: "CEO",
description: "Our CEO, Peter, credits his hardworking East Asian immigrant parents who undertook the arduous journey to the shores of America with the intention of giving their children the best future. His mother's wizardy in the kitchen whipping up the tastiest dishes with whatever is available inexpensively at the supermarket, was his first inspiration to create the fusion cuisines for which The Frying Pan became well known. He brings his zeal for fusion cuisines to this restaurant, pioneering cross-cultural culinary connections."
},
{
name: "Dhanasekaran Witherspoon",
image: 'images/alberto.png',
designation: "Chief Food Officer",
abbr: "CFO",
description: "Our CFO, Danny, as he is affectionately referred to by his colleagues, comes from a long established family tradition in farming and produce. His experiences growing up on a farm in the Australian outback gave him great appreciation for varieties of food sources. As he puts it in his own words, Everything that runs, wins, and everything that stays, pays!"
},
{
name: "Agumbe Tang",
image: 'images/alberto.png',
designation: "Chief Taste Officer",
abbr: "CTO",
description: "Blessed with the most discerning gustatory sense, Agumbe, our CFO, personally ensures that every dish that we serve meets his exacting tastes. Our chefs dread the tongue lashing...