Easy
From an Angular module, which is not the main module, I want to create a new component and make it available in the whole application(also in the module in which it is defined). What syntax should we use?
Author: Emmanuel DemeyStatus: PublishedQuestion passed 2672 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!
26
Create a form with two mandatory fields in Angular5
In an Angular directive, which decorator should we use to listen for an event of the element that this same directive is placed on?8
Write a pipe to format a date according to a certain pattern.13
Which of these methods, allowing to create Providers, does not exist in Angular?5
Why is the following snippet not validated?
```jsx
<h1>Products Lists</h1>
<ul>
<li *ngFor="let p of products" *ngIf="p.stock > 0">
{{ p.name }}
</li>
</ul>
```
Answer: We cannot have ngFor and ngIf on the same element5
Unsubscribe from an Observable in Angular12
Which provider is recommended for DOM manipulation in Angular?