slush-marklogic-node
slush-marklogic-node copied to clipboard
forward-compatibility with angular 2
we should start porting directives to components (including the "Community Add-ons"), for forward-compatibility with angular 2. The angular-component
polyfill brings support back to angular 1.3.
https://github.com/toddmotto/angular-styleguide has a lot of good info for this!
We could take the opportunity to improve the code base a little further in general. Some controllers are interacting with the backend in a fairly direct way. Would be nice if we would go through services for that. So in create and detail ctrl you'd do something like docManager.create and docManager.get, instead of making calls to mlRest directly..
I like the angular-styleguide. It would be good though if we could find a tool that could validate those guidelines to both help the transition, and to make sure we keep conforming in future..