Looking to incorporate an animation spinner into my Angular app
Found this spinner example:
https://codepen.io/z-/pen/OPzNLz
spinner.component.html
import {
Component,
OnInit
} from '@angular/core';
@Component({
selector: 'app-spinner',
templateUrl: './spinner.component.html',
styleUrls: ['./spinner.component.css'],
animations: []
})
export class SpinnerComponent implements OnInit {
constructor() {}
ngOnInit() {}
}
/*Your CSS code here*/
<div>
<!-- Your HTML code here -->
</div>
Successfully displayed the spinner by copying the HTML & CSS files into a plain html and css environment.
Decided to implement it as an angular component by transferring the code, but unfortunately the spinner did not appear - without any error messages.
Confirmed that BrowserAnimationsModule is imported in app.module.ts, however, it did not make a difference.