angular / a

Library for annotating ES5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Another potential syntax (a)

sparty02 opened this issue · 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 () {}

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

sparty02@977723e