是AngularJS构建基于CakePHP的电子商务网站的目录页一个不错的选择商务网站、目录、电子、AngularJS

2023-09-13 04:03:05 作者:茶已凉爱已歇

我正在考虑使用AngularJS构建我的基于CakePHP的电子商务平台,在我的目录中。我打算在CakePHP中使用超薄REST API来查询数据库。 这是目录会是什么样子。

I am considering to use AngularJS for building my catalog on my E-Commerce platform based on CakePHP. I plan to query database using Slim REST API in CakePHP. This is what the catalog would look like.

我不知道我是否应该用AngularJS。如果我能有人帮我知道我为什么要使用它,它应该怎样建设这样的目录页使用AngularJS?一个好处

I am not sure if I should use AngularJS. If I should can someone please help me to know why I should use it and how it shall be a benefit to use AngularJS in building such catalog page?

推荐答案

我个人使用AngularJS,EmberJS,HandlebarsJS和一些其他的东西涉猎。在我的愚见是AngularJS使用最好的框架之一。它是由谷歌支持,并在Web开发社区大量使用。在角中的错误陷入一次后,我通过电子邮件发送的AngularJS创作者之一,并得到了他在几天内答复。我发现,虽然学习曲线是不是最简单的,它更容易学习比很多我已经玩过其他框架。

I personally have used AngularJS, EmberJS, HandlebarsJS and dabbled in some other things. In my humble opinion AngularJS is one of the best frameworks to use. It is backed by Google and heavily used in the web development community. After getting stuck once on a bug in Angular, I emailed one of the AngularJS creators, and received a response from him within a couple days. I've found that although the learning curve isn't the easiest, its easier to learn than many of the other frameworks I've played with.

我引述角的网站:

HTML是伟大的声明静态文档,但是当我们试图用它来声明在Web应用动态视图它上不去。 AngularJS让你为你的应用程序扩展HTML的词汇。由此产生的环境显得格外前pressive,可读性和快速发展。

HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.

我个人发现,采用了棱角分明已经大大减少code,我已经有写获得Web的应用程序在JavaScript中的工作量。目前我公司在工作中使用的角度来运行他们的电子商务网站之一。移动融合是优秀的。

Personally I have found that using angular has drastically reduced the amount of code that I've had to write to get a web-application to work in JavaScript. The current company I work at uses Angular to run one of their e-commerce sites. Mobile integration is excellent.

只是看着你的链接很快,这是一个角度非常可行的应用程序。你需要一个RESTful Web服务来获取数据,但一切可以在前端采用了棱角分明相当容易地处理。 这里是一个强大的教程在角做一个全功能的应用程序,我想应该给你一个好主意,什么是可能的有棱有角。

Just looking at your link quickly, that is a very doable application in angular. You'll need a RESTful webservice to get the data, but everything else can be rather easily handled using Angular on the front end. Here is a robust tutorial making a full featured app in angular, I think it should give you a good idea of what is possible with angular.