#875 initial support for ng2-based stencils

This commit is contained in:
Denys Vuika
2016-11-23 18:10:38 +00:00
committed by Mario Romano
parent 2a6ef8bf51
commit 29843efeb0
7 changed files with 131 additions and 14 deletions

View File

@@ -0,0 +1,8 @@
var adf = (window.adf = window.adf || { components: {} });
adf.registerComponent = function (componentKey, componentClass) {
var components = (adf.components = adf.components || {});
components[componentKey] = {
class: componentClass,
factory: null
};
};

View File

@@ -0,0 +1,13 @@
/** stubs for Angular 1 api */
window.angular = {
module: function (moduleName) {
console.info('ng1: module %s requested', moduleName);
return {
controller: function (controllerName) {
console.info('ng1: controller %s requested', controllerName);
return {
}
}
}
}
};