import {run} from 'cyclow'
import Dropdown from './dropdown'
run(Dropdown, {target: 'app'})
The same file in a vanilla implementation using Angular (2.4.9):
import 'zone.js';
import 'reflect-metadata';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { Dropdown } from './dropdown';
@NgModule({
imports: [ BrowserModule, FormsModule ],
declarations: [ Dropdown ],
bootstrap: [ Dropdown ]
})
class AppModule {}
platformBrowserDynamic().bootstrapModule(AppModule);
The same file in a ng-options implementation using AngularJS (1.5.8):
import angular from 'angular'
angular.module('dropdownapp', [])
require('./dropdown')
The same file in a ng-value implementation using AngularJS (1.6.1):
import angular from 'angular'
angular.module('dropdownapp', [])
require('./dropdown')