Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 657 Bytes

bootstrap.md

File metadata and controls

26 lines (18 loc) · 657 Bytes

Bootstrap

First you should create typescript configuration file for your project (tsconfig.json). Here you can find example of basic configuration.

For bootstraping a new application you have to create some main file, like bootstrap.ts.

Also slicky needs some root component, in this case AppComponent.

import 'es7-reflect-metadata/dist/browser';

import {Application} from 'slicky/core';
import {Container} from 'slicky/di';

import {AppComponent} from './components/AppComponent';

let container = new Container;
let app = new Application(container, [
	AppComponent,
]);

app.run();