refactor(router): separate nav and router-outlet into two seperate directives

This commit is contained in:
Dan Bucholtz
2018-02-06 00:50:00 -06:00
parent 97baabde93
commit 73ce15f7da
14 changed files with 69 additions and 172 deletions

View File

@ -25,10 +25,3 @@ export function removeAllNodeChildren(element: HTMLElement) {
export function isString(something: any) {
return typeof something === 'string' ? true : false;
}
/**
* Flattens single-level nested arrays.
*/
export function flatten<T>(arr: T[][]): T[] {
return Array.prototype.concat.apply([], arr);
}