What is scope.$on() used for?

In Stock

Size Guide

$34.99 $29.99

Shipping and Returns Policy

Aug 17, 2013 ... ... angular.module('app').controller(controllerId, ['$scope', customController]); function customController($scope) { var vm = this; vm.activate ... In terms of AngularJs, a controller is a JavaScript constructor function that is used to enhance the AngualarJs Scope. AngularJs Controller is defined using ... Jun 28, 2013 ... You can do var isolateScope = myDirectiveElement.scope() to get the isolate scope. You don't really need to test that $watch was called though. ... >