Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can angular and knockout be used in same web application?

I am learning Angular JS and Knockout JS. So usually during interviews I have encountered a question like,

  1. Can we use both Angular JS and Knockout JS in the same application at a time.
  2. Also what could be the disadvantages and advantages if we do that?
  3. If we cannot use both frameworks in the same web application, what are the reasons.

Please help me out.

like image 985
amadhu Avatar asked Feb 10 '23 08:02

amadhu


1 Answers

  1. Yes you can ("But why would you? AngularJS already has data binding" would be my counter question)
  2. Disadvantages

    • Devs must learn two frameworks.
    • As mentioned above, increased loading time.

    Advantages

    • None that I can see.
  3. See 1.
like image 133
Christian Avatar answered Feb 13 '23 05:02

Christian