I'm climbing my learning curve in angular.js and try to understand where to put everything.
In this case I want to know if it is a best practice to use services to share the model between controllers.
var app = angular.module('module', [])
.factory('shared', ['$http', function ($http) {
  var factory = {
    "title" : "Shared Title 2"
  };
  factory.action = function () {
     // do something with this.title;
  }
  return factory;
}])
.controller('MainCtrl', ['$scope','shared', function($scope, shared) {
  $scope.shared = shared;
}])
.controller('SecondaryCtrl', ['$scope','shared', function($scope, shared) {
  $scope.shared = shared;
}]);
'thinking in angular': It is good practice to share the model like this?
 
    