Property = Backbone.Model.extend({ star: function() { this.set("starred", !this.get("starred")); this.save(); } }); (code in this presentation is from the book, & final versions of sample apps are @ github.com/pselle/choosing-javascript-framework)
prod • High lock-in with writing behavior in markup • Skeptics for future roadmap/Google backing • 1.3 drops IE8 support, some teams stuck in older version now (abandonware fears)
to the view angular.module('realtorsApp').controller('PropertiesController', function ($scope, Properties, $window) { Properties.getProperties() // chain w/ the promise returned by getProperties() .then(function success(properties) { $scope.properties = properties; }, function failure(err) { $window.alert(err); }); }); });