S
S
snake22022-04-01 13:35:08
JavaScript
snake2, 2022-04-01 13:35:08

How to optimize recording?

Is it possible to remove the repetition?

<tr *ngFor="let goods of order.goods">
                        <td *ngIf="(order.status == 7 && place.importance!= 1)">Место: {{goods.bar_code}}</td>
                        <td *ngIf="(order.status == 7 && place.importance!= 1)">{{goods.status}}</td>
                       
                        <td *ngIf="(order.status != 7)">Место: {{goods.bar_code}}</td>
                        <td *ngIf="(order.status != 7)">{{goods.status}}</td>
                      
                    </tr>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2022-04-01
@snake2

order.status != 7 || place.importance != 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question