angular.module('app', []).controller('HomeController', ['$scope','$parse', function($scope, $parse){ $scope.Model = {}; $scope.Mode = { Editing: false }; console.log('controller scope: ', $scope);}]).directive('editModeOptions', [ '$parse', function($parse) { return { restrict: 'A', scope: { kEditMode: '=', kOptions: '=' }, link: function(scope, element, attributes) { var values = scope.$eval(scope.GridColumns), options = scope.kOptions, mode = scope.kEditMode;
// do stuff with the various parameters console.log('isolate scope: ', scope); } }}]);<div ng-app="app" ng-controller="HomeController"> <div k-edit-mode="Mode.Editing" k-options="options.grid" grid-columns="['Id','Name','Abbreviation','Group']"></div> <h1>{{ Mode.Editing }}</h1></div>--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/A6xRMfQYwfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.