deno.land / x / alosaur@v1.1.1 / examples / di / app.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { HomeArea } from "./areas/home/home.area.ts";import { App } from "alosaur/mod.ts";import { FooService } from "./services/foo.service.ts";
const app = new App({ areas: [HomeArea], logging: false, providers: [{ token: FooService, useValue: new FooService(), }],});
app.listen();
alosaur

Version Info

Tagged at
a year ago