(AngularJS +引导)资源预留组件 [英] (AngularJS + Bootstrap) Resource reservation component

查看:134
本文介绍了(AngularJS +引导)资源预留组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写一个简单的AngularJS /引导/ Spring的MVC CRUD应用程序,可以让我管理3个类型的对象:房间预订的。 预订的类型有关系无论是在数据库和Java后端房间和人的对象。

I am writing a simple AngularJS/Bootstrap/Spring-MVC CRUD application that allows me to manage 3 types of objects: person, room and reservation. Reservation type has a relation to both room and person object both in DB and Java backend.

简单的部分已经,现在我需要知道什么是用于创建显示保留的图形日历风格的视图的最佳方法。

The simple parts have been made and now I need to know what would be the best approach for creating a graphical calendar-style view showing the reservations.

我能想象它无论是作为一个新的AngularJS指令(或者只是简单的NG-重复使用扩展控制器)或一个jQuery脚本模块。结果
这个问题虽然是? - 什么是更好的性能明智

I can imagine it either as a new AngularJS directive (or maybe just simple ng-repeat with extended controller) or a jQuery script module.
The question though is - what is better performance-wise?


  • 我应该尝试使用HTML5吸取它的画布,或可我只是一个页面上添加50-150的div并用这些作为重presentations
    我的日历中的实体?

  • 不会杀它的浏览器,如果我有这么多的div每个浮动顶上其他?另外他们每个人都需要有听众和连接到他们,所以pretty沉重的东西等动态事件,不是吗?

推荐答案

有是这个在github的角度UI。 http://angular-ui.github.io/ui-calendar/ <​​/A>

There's an angular UI for this on github. http://angular-ui.github.io/ui-calendar/

我不建议把50岁以上的div(DIV汤)中的任何文件。它会工作,但它会很辛苦调试,很难看的道路或者其他人有看它的未来。

I don't recommend putting 50+ divs(div soup) in any file. It would work but it will be very hard to debug and hard to look at down the road or if someone else has to look at it in the future.

这篇关于(AngularJS +引导)资源预留组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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