Guest User

Untitled

a guest
Nov 15th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <ng-template *ngIf="enableValidation(param.boolean)">
  2. <a href="{{param.link}}">
  3. <clr-icon shape="info-standard"></clr-icon> Acceder
  4. </a>
  5. </ng-template>
  6.  
  7. enableValidation(exist: any) {
  8. if (exist === null) {
  9. return true;
  10. }
  11. }
  12.  
  13. <div *ngIf="{{param.boolean}} === null ; else myData" > </div>
  14. <ng-template #myData>
  15. <a href="{{param.link}}">
  16. <clr-icon shape="info-standard"></clr-icon> Acceder
  17. </a>
  18. </ng-template>
Add Comment
Please, Sign In to add comment