developer
export class Foo {
bar() {}
}
export const foo = 'bar';
export default bar = { foo: 1 };
import defaultExport from './my-module';
import * as name from './my-module';
import { foo } from './my-module';
export { AppService } from './app.service';
export { LoggerService } from './logger.service';
export { UserService } from './user.service';
export * from './user.service';
import { AppService }
from '../services/app.service';
import { LoggerService }
from '../services/logger.service';
import { UserService }
from '../services/user.service';
import {
AppService,
LoggerService,
UserService,
} from '../services/index';
import {
AppService,
LoggerService,
UserService,
} from '../services';
module.exports = {
//...
resolve: {
alias: {
core:
path.resolve(__dirname,
'src/app/core'),
}
}
};
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"core/*": ["src/app/core/*"],
}
import { UserService }
from '../../../../../core/services';
import { UserService }
from 'app/core/services';
import { UserService }
from 'core/services';
import { DocumentModel, CommentModel }
from 'app/+documents/models';