Comments (1)
With require it will load the file at build time and bundle everything up.
With templateUrl it's loaded at runtime (and you need to have those files available).
Angular 2 is working on a "compiler" that will precompile the templates at build time so that the apps load faster, and to reduce angular 2 size (by removing the template parsers). When this is available we will add it to this starter and requiring the template will make more sense.
tl;dr: bigger js files, but no requests at runtime which means instant loading of components
from angular-webpack.
Related Issues (20)
- how to chunk appart an angular dynamicaly injected component HOT 3
- LoaderOptionsPlugin HOT 1
- Not detecting changes correctly in watch mode
- TypeError: Failed to fetch HOT 1
- Module build failed: Error: Cannot find module 'clone' HOT 1
- Getting Error - "Unhandled Promise rejection: Cannot create property '__creationTrace__' on string" HOT 5
- npm start not work HOT 2
- Host json web-services in the running node http server ?
- Load a independant lazy module from another server, is it possible ?
- how to install HOT 1
- Refactor webpack config HOT 4
- relative Imports using baseUrl (tsconfig) not working
- Will this line ever result in returning {}?
- Add partials to a global scss file
- Wen browser not opening HOT 1
- Is this project still alive ? HOT 2
- not working with Angular5 HOT 4
- how i can use alertify.js in angular HOT 1
- No node_modules folder created after alertify.js installation
- Got Error when using alertify.js with Angular 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-webpack.