ng-object-to-html
v0.0.12
Published
Angular component for parsing object to html.
Downloads
6
Maintainers
Readme
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]
]
}
}