如何添加索引文件的腳本文件與angular-cli
創建的angular2
項目:添加腳本角CLI項目
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CourseTests</title>
<base href="/">
{{#unless environment.production}}
<script src="/ember-cli-live-reload.js" type="text/javascript"></script>
{{/unless}}
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<course-tests-app>Loading...</course-tests-app>
{{#each scripts.polyfills}}
<script src="{{.}}"></script>
{{/each}}
<script>
System.import('system-config.js').then(function() {
System.import('main');
}).catch(console.error.bind(console));
</script>
</body>
</html>
例如,如何添加angular2的HTTP腳本?
它也會如果有人解釋這段代碼是如何工作是非常讚賞:
{{#unless environment.production}}
<script src="/ember-cli-live-reload.js" type="text/javascript"></script>
{{/unless}}
是的,我敢肯定,它的角CLI –