ng-object-to-html
TypeScript icon, indicating that this package has built-in type declarations

0.0.12 • Public • Published

NG Object to HTML

Installation:

npm i ng-object-to-html

Import and include it in your Angular project:

import { NgObjectToHtmlModule } from 'ng-object-to-html';
...
@NgModule({
    ...
    imports: [
        ...
        NgObjectToHtmlModule
    ],
    ...
})

Example:

example.component.ts

@Component({
  template: `<lib-ng-object-to-html [item]="testObject"></lib-ng-object-to-html>`
})
export class ExampleComponent {
  // Example object
  testObject = {
    a: '1',
    items: [
      { b: 1 },
      [1, 2, 3]
    ]
  }
}

Package Sidebar

Install

npm i ng-object-to-html

Weekly Downloads

0

Version

0.0.12

License

ISC

Unpacked Size

48.6 kB

Total Files

23

Last publish

Collaborators

  • sutija