How do I display a spinner while I'm waiting for the data to be displayed?
Is there a way to place a custom tag (from spinner component) in the HTML template where I'm waiting for the data?
My project is based on Angular Drupal POC
My list of articles component looks like this:
search() {
this.sub = this.nodeService.getNodes({ q: this.q })
.subscribe(
res => {
this.nodes = this.filteredNodes = res;
this.totalItems = this.nodes.length;
}
);
}