For Angular
Install the library
npm i @aut-labs/d-aut --saveImport the initialization function in the app.component.ts
import { Init } from '@aut-labs/d-aut';Call the Init function inside ngOnInit
ngOnInit(): void { Init(); }Add the CUSTOM_ELEMENTS_SCHEMA in your app.module.ts
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';Add the custom HTML tag and populate the partner-key property
app.component.ts:
import { Component, OnInit } from '@angular/core';
import { Init } from '@aut-labs/d-aut;
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent implements OnInit {
ngOnInit(): void {
Init();
}
title = 'ngular-app';
}app.module.ts:
app.component.ts:
Last updated