gonzaloruizdevilla / gist-of-angular-2

A toy version of Angular 2 to help you understand the magic! :)

Home Page:https://timruffles.github.io/gist-of-angular-2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toy version of Angular 2: understand the magic!

Angular 2 has lots of interesting techniques and concepts, but it's quite hard to figure how it really does its magic.

This is a simple educational version of Angular 2, in plain ES6. It's a quick read: under 350 LOC including lots of comments. This working toy (see the demo) does many things the same way as the real Angular 2 - for instance, it compiles components into fast, monomorphic functions by compiling their templates.

The goal is to implement the hairy 'magic' bits of Angular 2 in code that's as short and readable as possible.

👍 If you enjoy reading it, please let me know by starring the repo, or via @timruffles. There's a lot more to write, and I'd love to do just that if sufficient numbers of people would find that interesting.

I made something similar for Angular 1.

About

A toy version of Angular 2 to help you understand the magic! :)

https://timruffles.github.io/gist-of-angular-2/


Languages

Language:JavaScript 90.1%Language:HTML 9.9%