Good afternoon, I am a beginner in the angular and I have the following doubt:
Can I have a handy selector on all my components?
I bring my component as follows:
import { CarregandoComponent } from '../carregando/carregando.component';
@Component({
selector: 'app-questions',
templateUrl: './questions.component.html',
styleUrls: ['./questions.component.css'],
entryComponents: [CarregandoComponent]
})
The problem is that in every html I want loading I should put the selector
<carregando[isRunning]="isRequesting"></carregando>
I would like to put it just in one place, I tried index.html but it had no effect.
Does anyone know how to help me? Thanks