Angular 2 different views based on Desktop or Mobile

前端 未结 3 684
说谎
说谎 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:50

    The ng2-responsive package should cover your needs: https://www.npmjs.com/package/ng2-responsive

    I haven't used it extensively yet, but it seems to be doing a decent job.

    @View was merged into @Component (ages ago). @Component should be the only decorator you need.

提交回复
热议问题