notes
notes copied to clipboard
Migrating to Angular 2
Angular 2 is currently in Alpha Phase but it would be interesting in terms of checking what is required.
I think the Notes app is small enough regarding JavaScript that we test this out pretty easily.
The main benefit we'd get would be that is that its nearly an order of magnitude faster (I think 8 times) and they monkey patch the browser's async function, so no more $scope.$apply
Additional things that are recommend in conjunction with Angular 2 and we should follow suit:
- [ ] Use TypeScript to make use of a more concise and natural syntax (Annotations using @, ES6 features)
- [ ] Use jspm instead of Bower: jspm is an ES6 module loader that works with all sorts of packages: npm, bower, commonjs, amd and es6. In addition Angular 2 is currently only distributed over jspm afaik
- [x] Use Gulp instead of Grunt. Gulp uses streaming which makes it very fast, especially when using a transpiler like TypeScript, Traceur or Babel
Consider this to be more of an exploratory issue (and I want to try out new stuff :D)
@Henni @LukasReschke @MorrisJobke
We could split up the issues, I'll probably sit down and migrate the build system to Gulp very soon ;)
Next should be jspm. etc.
:+1: I'm also interested in experimenting with angular 2 and the notes app seems like a good place to do this.