search

Home  >  Q&A  >  body text

angular.js - 关于angular ui框架,想从bootstrap转向amaze ui

想从angular ui 的bootstrap转向amaze ui,但是这牵扯到一个jq的问题,一直以来都很纠结这个问题,但是也没有具体实践过,如果用了amaze ui的jquery组件,在angular里写directive还说尽量自己使用jq lite来写一个完善的组件呢?

淡淡烟草味淡淡烟草味2744 days ago830

reply all(4)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-15 16:56:12

    If you use itAngular就尽量不要使用jquery,一般情况下使用jquery可以达到的效果,使用Angular都可以达到的,因为Angular的指令已经十分强大了;不过,如果你觉得使用Angular的指令比较麻烦或者比较困难的话,那就用jquery, after all, the one that suits you is the best.

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-15 16:56:12

    The front-end framework style can be used, but the components are completely different. It is too difficult to completely imitate, so just use simple instructions to write. . . In fact, the bootstrap components recommended by angularui are not perfect either

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-15 16:56:12

    Just quote jquery directly. If you are not satisfied, just write it yourself

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-15 16:56:12

    If you have mysophobia and have requirements for loading speed, then write the component yourself, otherwise just wrap it with a directive.

    My own practice has always been to use the latter solution. The only difference between the two is whether jquery is required to depend on it, but jquery is so widely used. If you use a source such as Baidu, there is a high probability that the user will have a cache, so loading speed is usually not an issue. So wrapping it directly with directive can save you a lot of trouble, so why not?

    reply
    0
  • Cancelreply