if 'mat-spinner' is an angular component code example Example: angular material spinner with logo $ npm install ngx-spinner --save