We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemjs
yarn add "@types/systemjs": "^0.20.6",
或者
npm install @types/systemjs --save-dev
tsconfig
tsconfig.json
{ "compileOnSave": false, "compilerOptions": { "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "es2015", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es5", "typeRoots": [ "node_modules/@types" ], "types": ["system"], //<-- here }
index.html
<script src="node_modules/systemjs/dist/system.src.js"></script>
type.d.ts
System
declare var System: any;
pages.routing.ts
export function loadAuthModule() { return System.import('@ithinkdt/pages').then(mod => mod.IThinkDTAuthModule); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
1. 下载
systemjs
或者
2. 配置
tsconfig
tsconfig.json
3.
index.html
中引入该jsindex.html
4.
type.d.ts
中定义System
的类型type.d.ts
pages.routing.ts
5. 导入模块
The text was updated successfully, but these errors were encountered: