Which of #each scripts.polyfills?

I created an angular 2 application with the angular 2 CLI.

There are things in the index.html file such as:

{{#each scripts.polyfills}}
    <script src="Application/{{.}}"></script>
{{/each}}

When the application is created using the CLI command 'ng build', the output of index.html:

<script src="Application/vendor/scripts1.js"></script>
<script src="Application/vendor/scripts2.js"></script>
<script src="Application/vendor/scripts3.js"></script>

Now I ask you where is the #each coming from means the language / library?

and

where is the scripts.polyfills object defined in my angular 2 CLI application.

I can not find any folder / variable named "scripts" anywhere.

+4
source share
1 answer

Poly regiments are built into the angular-cli tool. Polyfill for angular

options.polyfills. , angular -cli-build.js. , jquery polyfill, polyfills, vendorNPM: -

 vendorNpmFiles: [
  'systemjs/dist/system-polyfills.js',
  'systemjs/dist/system.src.js',
  'zone.js/dist/**/*.+(js|js.map)',
  'es6-shim/es6-shim.js',
  'reflect-metadata/**/*.+(ts|js|js.map)',
  'rxjs/**/*.+(js|js.map)',
  '@angular/**/*.+(js|js.map)',
  'jquery/**/*.js'
],
polyfills:[
   'vendor/jquery/dist/jquery.min.js', 
   'vendor/es6-shim/es6-shim.js',
    'vendor/reflect-metadata/Reflect.js',
    'vendor/systemjs/dist/system.src.js',
    'vendor/zone.js/dist/zone.js', 
]
+4

All Articles