mirror of https://github.com/Squidex/squidex.git
17 changed files with 79 additions and 15 deletions
@ -0,0 +1,19 @@ |
|||
/* |
|||
* Squidex Headless CMS |
|||
* |
|||
* @license |
|||
* Copyright (c) Sebastian Stehle. All rights reserved |
|||
*/ |
|||
|
|||
import { Directive, ViewContainerRef } from '@angular/core'; |
|||
|
|||
import { RootViewService } from './../services/root-view.service'; |
|||
|
|||
@Directive({ |
|||
selector: '[sqxRootView]' |
|||
}) |
|||
export class RootViewDirective { |
|||
constructor(viewContainer: ViewContainerRef, rootViewService: RootViewService) { |
|||
rootViewService.rootView = viewContainer; |
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
/* |
|||
* Squidex Headless CMS |
|||
* |
|||
* @license |
|||
* Copyright (c) Sebastian Stehle. All rights reserved |
|||
*/ |
|||
|
|||
import { Injectable, ViewContainerRef } from '@angular/core'; |
|||
|
|||
@Injectable() |
|||
export class RootViewService { |
|||
public rootView: ViewContainerRef; |
|||
} |
|||
Loading…
Reference in new issue