News for hackers. Stuff that matters.
Re:Classy: Cleaner class-based controllers for AngularJS by davej on Sunday April 27, 2014 @05:47PM (#7657066)
Oh wow, this is my little project, cool to see it on the front page of Hacker News. :-)
Re:Classy: Cleaner class-based controllers for AngularJS by svnv on Monday April 28, 2014 @03:24AM (#7658652)
I think there is a small typo in the example on the page, there is a missing comma after the closing "watch"-bracket.
Re:Classy: Cleaner class-based controllers for AngularJS by jonny_eh on Monday April 28, 2014 @12:03AM (#7658171)
It's a really nice demo page. What do you use for the code highlighting?
Re:Classy: Cleaner class-based controllers for AngularJS by davej on Monday April 28, 2014 @01:30AM (#7658336)
Thank you. It's just CSS and the :hover pseudo-selector, the popover effect is done using CSS keyframe animations.

Fun geek fact: The Mac OS style close/minimize/expand buttons on the code editor are written in CSS, they're not images. A bit of a pointless exercise but a fun little easter egg.

Re:Classy: Cleaner class-based controllers for AngularJS by bmelton on Tuesday April 29, 2014 @11:46AM (#7667748)
My initial run-through of it leaves me thinking it's absolutely brilliant, which isn't generally a word I use lightly.

So long as non-Classy controllers are still operable (which I assume they are), then I should be able to port individual controllers one at a time without disturbing un-ported controllers, then this is exactly what Angular was needing, IMO.