Answer the question
In order to leave comments, you need to log in
How to implement module preloading in angular 2?
Hello. Just started learning angular 2.
In 5 Min Quickstart there is this line
" Do not transpile in the browser during development or for production ".
As far as I understand, it is used SystemJS
which loads all the necessary modules directly in the browser, as the application is executed. But the article recommends doing this in advance.
What is meant? Those. do I need to do this when building the project in order to get the output code in which all the modules are already connected?
Answer the question
In order to leave comments, you need to log in
See how it's done here . And to be more specific, here it is . And forget about SystemJS, as about a bad dream :-)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question