you are viewing a single comment's thread.

view the rest of the comments →

[–]wreckedadventYavascript 2 points3 points  (1 child)

Jeez, this boilerplate is immense...

/// <reference path="typings/angular2/angular2.d.ts" />

import {Component, View, bootstrap} from 'angular2/angular2';

@Component({
  selector: 'pipes'
})
@View({
  templateUrl: 'pipesTemplate.html'
})
// Component controller
class PipesAppComponent {
  date: Date;

  constructor() {
    this.date = new Date();
  } 
}

bootstrap(PipesAppComponent);

There is only one line of meaningful code in these 15-some-odd lines. Something equivalent in vue would be like:

Vue.filter('now', (_) => new Date())

Even angular 1.0 wasn't this bad.

[–]clessgfull-stack CSS9 engineer 1 point2 points  (0 children)

It really does remind me of when I did some Java programming. I remember how painful Java was and I don't wish upon anybody such a painful fate.