Хочу делать так чтоб обновления Сервиса изменились в контролере, без $broadcast. Попробовал делать так, но результатa 0
//Controller 1
$scope.tpl = MyService.getTemplate();
$scope.$watch($scope.tpl, function(oldValue, newValue){
$scope.tpl = newValue;
});
//Controller 2
MyService.setTemplate('template1');
//Service
var template = 'template';
var setTempale = function(tpl)
{
tempalate = tpl;
}
var getTempale = function()
{
return template;
}
в сервисе наверняка изменяется но в Controller 1 остается прежнее значение.