0.0.12 • Published 6 years ago

ng-object-to-html v0.0.12

Weekly downloads
4
License
ISC
Repository
-
Last release
6 years ago

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]
    ]
  }
}