Skip to content

Instantly share code, notes, and snippets.

View arturovt's full-sized avatar
🎯

Artur arturovt

🎯
View GitHub Profile
{
// TNodeType.ElementContainer
type: 4,
// index - not in the tree, but in the parent's metadata array
index: 20,
// index of the nearest injector, -1 = no injector
injectorIndex: -1,
directiveStart: -1,
directiveEnd: -1,
// indexes of the first and last input parameter
elementContainerStart(index);
elementContainerEnd();
{
nodeIndex: 0,
parent: null,
renderParent: null,
bindingIndex: 0,
outputIndex: 0,
checkIndex: 0,
flags: 1,
childFlags: 0,
directChildFlags: 0,
function createInjector(
defType: any,
parent?: Injector | null,
additionalProviders?: StaticProvider[] | null,
name?: string
): Injector;
function ButtonComponent() {
this.type = null;
this.color = null;
}
export class ButtonComponent {
@Input()
public type: string | null = null;
@Input()
public color: string | null = null;
}
class ButtonComponent_1 {
public:
std::string type;
};
class ButtonComponent_0 {};
ButtonComponent_0* buttonComponent = new ButtonComponent_0();
buttonComponent->type = "primary";
providerData.instance[propName] = value;
<app-button type="primary"></app-button>
<app-button color="pink"></app-button>