Ngx xml collapsible
npm install ngx-xml-collapsibleNgx xml collapsible
Try it https://stackblitz.com/~/github.com/AlexKhymenko/ngx-xml-collapsible
- Simply run npm i ngx-xml-collapsible.
- Add animation provideAnimations provider to your project
```````
bootstrapApplication(AppComponent, {
providers: [provideAnimations(),
provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes)]
}).catch((err) => console.error(err));
```Import NgxXmlCollapsibleComponent in Your component
```
@Component({
selector: 'app-root',
standalone: true,
imports: [RouterOutlet, NgxXmlCollapsibleComponent],
templateUrl: './app.component.html',
styleUrl: './app.component.css'
})
export class AppComponent {
xmlData = ' Ellen Adams 123 Maple Street Mill Valley CA 10999 USA Tai Yee 8 Oak Avenue Old Town PA 95819 USA Please leave packages in shed by driveway. -
Lawnmower 1 148.95 Confirm this is electric -
Baby Monitor 2 39.98 1999-05-21 ';
}
````