Sha256: efc614c19dd7c6b51aacac4d8160b4e8c1b3d161c73c3774d1a2f80678929d92

Contents?: true

Size: 359 Bytes

Versions: 11

Compression:

Stored size: 359 Bytes

Contents

'use strict';

angular.module('entangledTest')

.controller('MessageCtrl', function($scope, $routeParams, Message) {
  $scope.update = function() {
    $scope.message.$save();
  };

  Message.find($routeParams.id, function(message) {
    $scope.$apply(function() {
      $scope.message = message;
      console.log('Show callback called!');
    });
  });
});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
entangled-0.0.20 spec/dummy/public/app/controllers/message.js
entangled-0.0.19 spec/dummy/public/app/controllers/message.js
entangled-0.0.18 spec/dummy/public/app/controllers/message.js
entangled-0.0.17 spec/dummy/public/app/controllers/message.js
entangled-0.0.16 spec/dummy/public/app/controllers/message.js
entangled-0.0.15 spec/dummy/public/app/controllers/message.js
entangled-0.0.14 spec/dummy/public/app/controllers/message.js
entangled-0.0.13 spec/dummy/public/app/controllers/message.js
entangled-0.0.12 spec/dummy/public/app/controllers/message.js
entangled-0.0.11 spec/dummy/public/app/controllers/message.js
entangled-0.0.10 spec/dummy/public/app/controllers/message.js