From 24591c67dd11f2d4eed658a09622ad24a3913b56 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 4 Nov 2014 12:48:16 -0800 Subject: [PATCH] [Framework] Add custom registration types Add custom registration for Angular's directives and controllers. WTD-518. --- platform/framework/src/CustomRegistrars.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/framework/src/CustomRegistrars.js b/platform/framework/src/CustomRegistrars.js index 611d9d8cc9..6fa0a618be 100644 --- a/platform/framework/src/CustomRegistrars.js +++ b/platform/framework/src/CustomRegistrars.js @@ -67,7 +67,9 @@ define( } return { - routes: registerRoute + routes: registerRoute, + directives: new CustomRegistrar("directive"), + controllers: new CustomRegistrar("controller"), services: new CustomRegistrar("service") }; }