From a3470d1962731bd14e4591ff6d2ff6bfc77b8349 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sat, 4 May 2019 21:30:40 -0700 Subject: [PATCH] afformCore - Expose crmApi4 and crmStatus in standard scopes --- ext/afform/core/ang/afformCore.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/afform/core/ang/afformCore.js b/ext/afform/core/ang/afformCore.js index 7548db1f5c..afad2607e2 100644 --- a/ext/afform/core/ang/afformCore.js +++ b/ext/afform/core/ang/afformCore.js @@ -1,11 +1,11 @@ (function(angular, $, _) { // Declare a list of dependencies. angular.module('afformCore', [ - 'crmUi', 'crmUtil', 'ngRoute' + 'crmUi', 'crmUtil', 'ngRoute', 'api4' ]); // Use `afformCoreDirective(string name)` to generate an AngularJS directive. - angular.module('afformCore').service('afformCoreDirective', function($routeParams){ + angular.module('afformCore').service('afformCoreDirective', function($routeParams, crmApi4, crmStatus){ return function(camelName, meta, d){ d.restrict = 'AE'; d.scope = {}; @@ -14,6 +14,8 @@ $scope.ts = CRM.ts(camelName); $scope.routeParams = $routeParams; $scope.meta = meta; + $scope.crmApi4 = crmApi4; + $scope.crmStatus = crmStatus; }; return d; }; -- 2.25.1