rang
rang copied to clipboard
Cleaner naming
I'm not fond of the shorten names (RangDrt, ScopeCtrl, ...)
What do you think about something like Backbone.js :
- Rang.Controller
- Rang.ScopedController
- Rang.Directive
- ...
+1
Well i just use Ctrl because on the angular js main page and many blog people write
'PostCtrl'
First because i was comming from the rails world it was surprising me, but now is ok. So I use
@Ctrl
@DrtCtrl
@Srv
To be consistent
But you're right plain word are nice.
look at https://github.com/ranska/rang/blob/directive_controller/rang.js.coffee RangBase use a switch pattern so why not use both a short form and a formal form ? Feel free to push me your first pull request i would be very happy to accept it :) (o)/
For Backbone style look at https://github.com/ranska/rang/blob/aether_auto_register/rang.js.coffee and look at my aether repository. there is maybe something to do with it.