Skip to main content
Module

x/alosaur/examples/customdi/app.ts

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
File
import { HomeArea } from "./areas/home/home.area.ts";import { App, InternalDependencyContainer } from "alosaur/mod.ts";import { FooService } from "./services/foo.service.ts";
const container = new InternalDependencyContainer();
const service = new FooService();service.setName("Bar");
container.registerInstance("FooService", service);
const app = new App({ areas: [HomeArea], logging: false, container,});
app.listen();