ORIGAMI
- scope.$watch('name', function(newValue, oldValue) {
- scope.counter = scope.counter + 1;
- });
function firstCtrl($scope){
$scope.$on('someEvent', function(event, data) { console.log(data); });
}
function secondCtrl($scope){
$scope.$emit('someEvent', [1,2,3]);
}function firstCtrl($scope){
$scope.$broadcast('someEvent', [1,2,3]);
}
function secondCtrl($scope){
$scope.$on('someEvent', function(event, mass) {console.log(mass)});
}
-
function GreetingCtrl($scope) {
-
$scope.greeting = 'Hola!';
- }
-
var myApp = angular.module('myApp',[])
-
myApp.controller('GreetingCtrl', ['$scope', function($scope)
-
$scope.greeting = 'Hola!';
- }]);
{{ expresion | filtro | filtroN:param1:paramN }}