Require templates with require() in components
Include Angular component templates as strings in the app bundle using the stringify Browserify transform and use them from directives using 'template' instead of 'templateUrl'. This is faster, because it avoids going through the async $http machinery to load templates, but it is also synchronous, which generally means fewer surprises due to async template loading and specifically in the context of the <excerpt> directive will be useful as it will make it possible for the <excerpt> directive to measure the height of its content in the link function, because all components inside the exercept's content will have been fully resolved at that point.
Showing
... | ... | @@ -58,6 +58,7 @@ |
"retry": "^0.8.0", | ||
"scroll-into-view": "^1.3.1", | ||
"showdown": "^1.2.1", | ||
"stringify": "^5.1.0", | ||
"through2": "^2.0.1", | ||
"tiny-emitter": "^1.0.1", | ||
"uglifyify": "^3.0.1", | ||
... | ... |
Please register or sign in to comment