a icon indicating copy to clipboard operation
a copied to clipboard

Another potential syntax (a)

Open sparty02 opened this issue 10 years ago • 1 comments

Here's a suggestion for another potential syntax that looks even more like decorator annotations and removes the need for the .for DSL.

(a).RouteConfig([
  { path: '/' }
])
(a).View({
  template: '...'
})
(MyController)
function MyController () {}

sparty02 avatar May 15 '15 21:05 sparty02

FWIW, I tinkered around with this syntax and got it to work:

https://github.com/sparty02/a/commit/977723eeb2c57563b8200291fbd93b49a2edddf7

sparty02 avatar May 16 '15 04:05 sparty02