3
Good afternoon, I am beginner in the angular and I have the following doubt:
It is possible to have a selector accessible in 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 to load I must put the selector
<carregando[isRunning]="isRequesting"></carregando>
I would like to put it only in one place, I tried in index.html but it had no effect.
Can anyone help me? Thank you