all imlementations using Angular all imlementations of Firebase

a TypeScript implementation
of the Firebase demo using Angular



import 'zone.js'
import 'reflect-metadata'

import { NgModule, Component }      from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule }   from '@angular/forms';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { Battle } from './battle';

@NgModule({
    imports:      [ BrowserModule, FormsModule ],
    declarations: [ Battle ],
    bootstrap:    [ Battle ]
})
class AppModule {}

platformBrowserDynamic().bootstrapModule(AppModule);

The same file in an es6 implementation using Cyclow (0.3.0):

import {run} from 'cyclow'
import Battle from './battle'

run(Battle, {target: 'app'})

The same file in an es6 class implementation using React (15.3.1):

import React from 'react'
import ReactDOM from 'react-dom'

import Battle from './battle'

ReactDOM.render(<Battle />, document.getElementById('app'))