Tag:Structural directive

  • Explain the instruction module and style of angular structure in detail


    catalogue 1、 Structured instruction Two, module Module Write a forroot () 3、 Style definition Use ngstyle to adjust the order when dragging 1、 Structured instruction *Is a syntax sugar, < A * ngif = “user. Login” > Exit < / a > is equivalent to <ng-template [ngIf]=”user.login”> <a>Exit</a> </ng-template> Avoid writing ng template. <ng-template [ngIf]=”item.reminder”> […]