var app = angular.module("app", ["xeditable"]);
app.run(function(editableOptions) {
editableOptions.theme = 'bs3';
});
app.controller('Ctrl', function($scope, $element,$window) {
$scope.bookquotes = { entries: [{'quote': 'Joe proposed marriage and against her mothers wishes.'},{'quote' : 'He stowed away on a train to Detroit.'},{'quote' : 'As far as I knew, the belt was never actually used on any of us'},{'quote' : 'Every season had a different feeling.'}]};
$scope.updateQuote = function(data) {
var gatherQuotes = $scope.bookquotes.entries.map(function (item, v) {
return v + item.quote;
});
// $window.alert(gatherQuotes);
var revised = angular.toJson($scope.bookquotes.entries);
$window.alert(revised);
}
});
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.