diff --git a/optionals/angular-dashboard-framework.js b/optionals/angular-dashboard-framework.js index 2981873..7c59a98 100644 --- a/optionals/angular-dashboard-framework.js +++ b/optionals/angular-dashboard-framework.js @@ -52,11 +52,12 @@ module.exports = { // {resolve: ..} res.push.apply(res, ctx.matchResolve(props)); - // edit: {controller: function(), resolve: {}} + // edit: {controller: function(), resolve: {}, apply: function()} const edit = ctx.matchProp('edit', props); if (edit && edit.type === "ObjectExpression") { const editProps = edit.properties; res.push(ctx.matchProp('controller', editProps)); + res.push(ctx.matchProp('apply', editProps)); res.push.apply(res, ctx.matchResolve(editProps)); } diff --git a/tests/optionals/angular-dashboard-framework.annotated.js b/tests/optionals/angular-dashboard-framework.annotated.js index 44ef9de..e51061b 100644 --- a/tests/optionals/angular-dashboard-framework.annotated.js +++ b/tests/optionals/angular-dashboard-framework.annotated.js @@ -83,6 +83,9 @@ angular.module('myMod', ['adf.provider']) controller: ["$http", function($http){ // control something }], + apply: ["$http", "config", function($http, config){ + // apply configuration + }], resolve: { editone: ["$http", "config", function($http, config){ // resolve something diff --git a/tests/optionals/angular-dashboard-framework.js b/tests/optionals/angular-dashboard-framework.js index 6b4055b..75e00d9 100644 --- a/tests/optionals/angular-dashboard-framework.js +++ b/tests/optionals/angular-dashboard-framework.js @@ -83,6 +83,9 @@ angular.module('myMod', ['adf.provider']) controller: function($http){ // control something }, + apply: function($http, config){ + // apply configuration + }, resolve: { editone: function($http, config){ // resolve something