Vue project created using the TypeScript

  Vue flexibility always makes the code look very succinct, to TypeScript is also a challenge, but fortunately for TypeScript Vue conducted a comprehensive adaptation.

  React with respect to the strict codes, Redux long-winded boilerplate code, Vue is very flexible. Vue bidirectional binding principle, as shown in FIG.

  The benefits of two-way binding is such that, when the data changes, will be released called "model-update" event, similar to when a change of view, will release a "ui-update" event is called, Vue automatically subscribed to these events, and can automatically handle, we do not care about in the end is the data changes or changes in the UI, Vue can handle yourself. Especially when drawing long Form form, simply bind variables in the input module, either user input or manual assignment by the code, the module will automatically change, you do not need to go to care about the details of each input.

  Although the Vue is great, but to support TypeScript is not so perfect, there are some details we need to do.

  ⒈

Guess you like

Origin www.cnblogs.com/fanqisoft/p/12034270.html