This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ng-template [ngIf]="authorized"> | |
<ng-container> | |
<button>Profile</button> | |
<button>Logout</button> | |
</ng-container> | |
</ng-template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ng-container *ngIf="authorized"> | |
<button>Profile</button> | |
<button>Logout</button> | |
</ng-container> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const comment = document.createComment(''); | |
document.body.appendChild(comment); | |
const p = document.createElement('p'); | |
const text = document.createTextNode('Hello world!'); | |
p.appendChild(text); | |
comment.parentNode.insertBefore(p, comment.nextSibling); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
renderElement: comment, // ссылка на инстанс Comment | |
componentView: undefined, | |
viewContainer: null, | |
template: new TemplateRef_(view, def) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
renderElement: p, // ссылка на инстанс HTMLParagraphElement | |
componentView: undefined, | |
viewContainer: null, | |
template: undefined | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface ElementData { | |
renderElement: any; | |
componentView: ViewData; | |
viewContainer: ViewContainerData | null; | |
template: TemplateData; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-some-component', | |
template: ` | |
<ng-template> | |
<p>{{ counter }}</p> | |
</ng-template> | |
` | |
}) | |
export class SomeComponent { | |
public counter = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-some-component', | |
template: ` | |
<ng-tempate> | |
<p>Hello world!</p> | |
</ng-tempate> | |
` | |
}) | |
export class SomeComponent {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-some-component', | |
template: ` | |
<ng-template> | |
<p>Hello world!</p> | |
</ng-template> | |
` | |
}) | |
export class SomeComponent {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// "256" - это NodeFlags.TypeValueProvider | |
moduleProviderDef(256, APP_ROOT, true, []) |