kylin-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jason zhong <hellowode...@gmail.com>
Subject refactor data model in kylin front end
Date Wed, 14 Jan 2015 15:37:04 GMT
Currently all data model info are defined in controller in angularjs.data
and presentation mixed together.

It's ok for small app.but for kylin,It's not a good idea. with application
grows,we need to refactor the code by seprating the data model from
controller. in angularjs ,service is a good feature to make this happen.
The controller in angularjs will manage the presentation.and data model
managed in service.
so I propose to refactor the code

here's a blog explain more clearly. FYI

http://joelhooks.com/blog/2013/04/24/modeling-data-and-state-in-your-angularjs-application/#

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message