角/做出反应 - 他们在哪儿适合? [英] Angular/React - Where do they fit in?

查看:98
本文介绍了角/做出反应 - 他们在哪儿适合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始寻找到角或反应,但我有在分钟很难搞清楚他们适合在哪里?

I would like to start looking into Angular or React, but I'm having a hard time at the minute figuring out where they fit in?

我目前正在建设使用基于PHP的防爆pression引擎或工艺CMS我们所有的网站。是否有可能使用角或与这些反应是?我会认为他们充当了整个前端是正确的?

I currently build all our sites using PHP based Expression Engine or Craft CMS. Is it possible to use Angular or React with these? Would I be correct in thinking they act as the whole front-end?

因此​​,例如,我会用EE /工艺只创建API的获取/后的数据,然后角/阵营将利用从这些调用数据的页面?

So for example, would I use EE/Craft to just create the API's to fetch/post data, and then Angular/React would generate the pages using the data from these calls?

推荐答案

这正是我会怎么做。我不是太熟悉,您正在使用的CMS框架,但有与CMS开发经验好位。通常我利用提供的API将数据传送到presentation层,然后用一个JavaScript框架,如角创建我的UI。

That is exactly what I would do. I am not overly familiar with the CMS frameworks you are using, but do have a good bit of experience with CMS development. Typically I leverage the provided APIs to bring the data to the presentation layer, and then use a JavaScript framework such as Angular to create my UI.

这方法将工作的伟大,如果你可以不使用任何CMS服务器控件脱身,并通过API调用执行所有的数据操作。

This approach will work great if you can get away with not using any of the CMS server controls, and perform all data operations through API calls.

这篇关于角/做出反应 - 他们在哪儿适合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆