You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
include a webpack universal-loader for prerendering
create new universal prerender solution
section off pages for prerender and rerender for fastest server rendering solution
Reacted by Hongbo Miao, Maciej Treder, aku, Daniel Zuidinga, Bogusław Skrzypkowiak, Anthony Bobenrieth, Oliver Janik, Eyal Lapid, dennisx5, sshrshnv and 17 more
Reacted by Wassim Chegham, Dmytro Khokhlov, Hongbo Miao, Dotan Simha, imgsworld and Marian Stoica
the current API is compatible but will be depreciated since I was essentially doing what NgModule now allows me to do. The rc5 release of universal will recommend users to follow the Angular API conventions.
The old Bootloader API will still be supported until everyone switches to the new NgModule syntax using UniversalModule. The benefits of the new API allows me to provide server-only-components in any other part of the component tree rather than only being limited to the parent of the root component tree
Reacted by Hongbo Miao, z639, Maciej Treder and Andrew Thomas
AoT support will be in the next release which has a small breaking change (remove main function for ngModule reference) and will be released as 2.0.0 the changes are on my laptop I just need to push it up and cut a release
Reacted by Hongbo Miao, Kuldeep Keshwar and Boris Prpic
Reacted by Josh DeVinney, Suguru Inatomi, Jonathan Casarrubias, John Eckhart and Vijay Goel
The starter for Node and the examples in the documentation are not exactly the same (especially for the main.node as mentioned acthomas06) is one way better than the other ?
Hi @gdi2290, i see you've checked aot compilation, but i can't get it to work. From what i can gather, all libraries that i use in my project should have an index.metadata.json which is generated by the compiler-cli(ngc compiler). I've tried aot-compiling the universal project myself, but there are a bunch of "Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function" errors. Basically all functions used inside an "@NgModule" need to be exported and referenced. I'll maybe take a look this weekend if i may and i'm right about my assumptions, i just wanted to let everyone searching for this issue know and thanks for all the great work you're putting in!
Activity
maciejtreder commentedon Aug 11, 2016
Any forecast when you are going to implement this?
lmantis commentedon Aug 11, 2016
Hi, I would like to know too. Thanks in advance.
PatrickJS commentedon Aug 11, 2016
here's a preview of what I have so far which is sticking to the angular API as much as possible
GrandSchtroumpf commentedon Aug 11, 2016
Is '@angular/universal' released yet ? I can't get my hand on it with npm.
maciejtreder commentedon Aug 11, 2016
@GrandSchtroumpf
On my end it's working:
This is latest version. But it is not working with latest angular (rc.5).
I believe that if you want to use it with rc.5 solution provided by @gdi2290 is working correctly (I did not check it no my end).
PatrickJS commentedon Aug 11, 2016
rc.5 is not released yet for universal
maciejtreder commentedon Aug 11, 2016
@gdi2290
So code which you provided is not compatible with angular rc5? Do I understand correctly?
PatrickJS commentedon Aug 11, 2016
the current API is compatible but will be depreciated since I was essentially doing what NgModule now allows me to do. The rc5 release of universal will recommend users to follow the Angular API conventions.
The old Bootloader API will still be supported until everyone switches to the new NgModule syntax using
UniversalModule. The benefits of the new API allows me to provide server-only-components in any other part of the component tree rather than only being limited to the parent of the root component treeGrandSchtroumpf commentedon Aug 17, 2016
@gdi2290 : Do you have any idea when the new version of Angular universal supporting rc5 would be released ?
PatrickJS commentedon Aug 18, 2016
I'm shooting for Friday
geoffreak commentedon Aug 19, 2016
How's the Friday release looking?
22 remaining items
PatrickJS commentedon Sep 14, 2016
AoT support will be in the next release which has a small breaking change (remove main function for ngModule reference) and will be released as 2.0.0 the changes are on my laptop I just need to push it up and cut a release
bryan commentedon Sep 15, 2016
angular2 is out of rc!
PatrickJS commentedon Sep 15, 2016
yup, the next release will use the 2.0.0 release
kuldeepkeshwar commentedon Sep 15, 2016
how soon can we expect support for 2.0.0 release ?
MarkPieszak commentedon Sep 15, 2016
Think Pat said he'll make another push to npm in a few hours?
PatrickJS commentedon Sep 15, 2016
ya sorry not tonight as I originally planned. I'm getting a weird typescript error that i need to dive into to figure out why it's giving me the error
update: Universal 2.0.x released. ts error fixed
acthomas06 commentedon Sep 16, 2016
I did notice that your main.node and main.browser files in angular-universal-starter are completely identical. Maybe start there @gdi2290 :)
PatrickJS commentedon Sep 16, 2016
Universal 2.0.x was released on npm. The rest of the items on the list will be released as patches
GrandSchtroumpf commentedon Sep 16, 2016
The starter for Node and the examples in the documentation are not exactly the same (especially for the main.node as mentioned acthomas06) is one way better than the other ?
PatrickJS commentedon Sep 16, 2016
the starter is the best example. the examples in this repo are mostly for stress testing different scenarios etc
thrallala commentedon Sep 28, 2016
Hi @gdi2290, i see you've checked aot compilation, but i can't get it to work. From what i can gather, all libraries that i use in my project should have an index.metadata.json which is generated by the compiler-cli(ngc compiler). I've tried aot-compiling the universal project myself, but there are a bunch of "Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function" errors. Basically all functions used inside an "@NgModule" need to be exported and referenced. I'll maybe take a look this weekend if i may and i'm right about my assumptions, i just wanted to let everyone searching for this issue know and thanks for all the great work you're putting in!
PatrickJS commentedon Sep 28, 2016
we're missing our metadata.json file
angular-automatic-lock-bot commentedon Sep 4, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.