Nice reply. Thanks Yoav Luft @ Matific. On Tue, Nov 29, 2016 at 2:17 PM, Yoav Luft @ Matific < yoav.l...@slatescience.com> wrote:
> > - core-js/client/shim - used for ES6 shims and polyfills. This is for > solving browser missing features etc. > - zone.js - used for creating isolated environments in Javascript, > used by Angular2. > - Reflect.js - ? > - systemjs - Used by angular for configuration, loading parts, and > some other stuff. I'm not that sure because I use webpack, but they fill > the same "spot" in the build. > > > as for `System.import('app')`, it tells System.js (or ES6 compatible > browser) to import your remote application code. This call will actually > load your code and bootstrap Angular2. it will return a promise, and we > use a `catch(...)` clause to handle any errors in importing or > boostrapping. > > > > On Tuesday, November 29, 2016 at 2:55:32 AM UTC+2, foysal foysal wrote: >> >> I am learning angularjs 2. I am following this >> <https://github.com/angular/quickstart/blob/master/index.html> git repo. >> Here I got below codes in *index.html*. >> >> <script src="node_modules/core-js/client/shim.min.js"></script><script >> src="node_modules/zone.js/dist/zone.js"></script><script >> src="node_modules/reflect-metadata/Reflect.js"></script><script >> src="node_modules/systemjs/dist/system.src.js"></script><script >> src="systemjs.config.js"></script><script> >> System.import('app').catch(function(err){ console.error(err); });</script> >> >> Why these codes used in *index.html* ? >> >> What are the necessitys of including these JavaScript files ? >> >> What do they do here ? >> > -- > You received this message because you are subscribed to the Google Groups > "Angular" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to angular+unsubscr...@googlegroups.com. > To post to this group, send email to angular@googlegroups.com. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Angular" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.