3 angular.module('zephyrApp')
4 .directive('myNumber', function () {
6 templateUrl: 'app/directive/my-number/my-number.html',
7 scope: { }, // This Directive has has Isolated Scope
10 controller: function($scope){
11 // Receive "arg" and "opt" From $parent Scope
12 // $parent Scope is my-form Directive
13 var arg = $scope.$parent.arg;
14 var opt = $scope.$parent.$parent.opt;
16 $scope.argName = arg.argName;
17 $scope.optionName = opt.optionName;