Sunday 14 May 2017

Add automatically dependency to each module [Typescript]

I have index.ts file which export routes:

export * from './user.routes';
export * from './message.routes';

How can I add dependency to all routes from other file?

I need something like this:

import * as routes from './router';
routes(app);



via Vladimir

No comments:

Post a Comment