chore(angular/providers): making progress on angular providers, fix merge issues

* chore(input): remove interface .d.ts file, move to .ts file

* refactor(angular): start working on providers, etc

* chore(angular/dependencies): update deps for angular demo
This commit is contained in:
Dan Bucholtz
2017-11-21 11:58:57 -06:00
committed by GitHub
parent d17dfea4c5
commit f269766068
16 changed files with 1125 additions and 690 deletions

View File

@ -0,0 +1,17 @@
export function hydrateElement(element: any) {
return element.componentOnReady();
}
export function getElement(elementName: string) {
return document.querySelector(elementName);
}
export function ensureElementInBody(elementName: string) {
let element = getElement(elementName);
if (!element) {
element = document.createElement(elementName);
document.body.appendChild(element);
}
return element;
}