Zack Yang
Zack Yang
**1. 'or' is not work** ``` http://localhost:3000/book?$filter=price gt 30 or price lt 30 ``` is same as ``` http://localhost:3000/book?$filter=price gt 30 and price lt 30 ``` This is a mistake....
We want to make some changes in the next version. Defining a resource in the following way should be clearer. If you have any suggestions, please comment on this issue....
I have multiple database in a **SINGLE** NodeJS project. example: ``` var conn = mongoose.createConnection('mongodb://localhost/testA'); var conn2 = mongoose.createConnection('mongodb://localhost/testB'); // stored in 'testA' database var ModelA = conn.model('Model', new mongoose.Schema({...
https://github.com/zensh/jsgen/blob/master/static/src/js/app.js#L31-L54 在这段代码里面使用了transformRequest和transformResponse来处理全局loading的问题, 这是一个好想法. 这个很像Jquery AjaxStart和AjaxStop. 不过在Angular里面, 这两个方法并不代表发起和结束ajax. 这里我只测试了transformResponse的情况, 如果返回的响应是没有内容或者报错, 将无法触发这个callback. 你可以尝试让服务端返回一个 204 或 500, 将重现这个问题. [这里](http://stackoverflow.com/questions/17494732/how-to-make-a-loading-indicator-for-every-asynchronous-action-using-q-in-an-a) 似乎提供了更好的解决方案.
ES5: ``` class App { render() { ... } } export Logger(App); ``` ES6: ``` @Logger export default class App { render() { ... } } ```