A
A
Alex2016-06-12 15:43:26
JavaScript
Alex, 2016-06-12 15:43:26

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 SystemJSwhich 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

1 answer(s)
A
Alexey Pavlov, 2016-08-18
@joseperez

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 question

Ask a Question

731 491 924 answers to any question