Angular 2 different views based on Desktop or Mobile

前端 未结 3 697
说谎
说谎 2021-02-03 12:12

I\'m working on web site, that has slight different functionality based on version desktop/mobile.

I tried to apply it via @View, but it looks like this decorator is now

3条回答
  •  名媛妹妹
    2021-02-03 12:52

    At the moment the best to replace @View decorator is using an *ngIf like this:

    modile stuff
    desktop stuff

提交回复
热议问题