Isn't Angular Universal just the same old JSP/ASP pages, only less coherent and more compicated to set up?










2















Sorry about the provocative question title, but really, where are the differences?



As far as I get it, the message is something like: "with SPA there might be some performance problems owed to the fact that the DOM is being processed by the javascript running in the browser; so let us render the pages on the server to eliminate this overhead to make things faster!"



Of course it then might introduce issues due to the fact that Angular was meant to work in the browser, not on Node.js server.



So again my question is are there any differences between Angular Universal and the "good old" server side pages, and what value if any Angular Universal adds in comparison?










share|improve this question






















  • With server side rendering you are pre-rendering a SPA, you're just delegating all the job of the browser to a server. There's no connection with JSP/AP

    – Cristian Traìna
    Nov 14 '18 at 11:41






  • 1





    Then, Angular works mainly in a browser but it wasn't designed to run only in a browser. You can use Angular also to create a desktop application or a smartphone application. If it doesn't work so fine in a server is just because it's not mature enough

    – Cristian Traìna
    Nov 14 '18 at 11:44















2















Sorry about the provocative question title, but really, where are the differences?



As far as I get it, the message is something like: "with SPA there might be some performance problems owed to the fact that the DOM is being processed by the javascript running in the browser; so let us render the pages on the server to eliminate this overhead to make things faster!"



Of course it then might introduce issues due to the fact that Angular was meant to work in the browser, not on Node.js server.



So again my question is are there any differences between Angular Universal and the "good old" server side pages, and what value if any Angular Universal adds in comparison?










share|improve this question






















  • With server side rendering you are pre-rendering a SPA, you're just delegating all the job of the browser to a server. There's no connection with JSP/AP

    – Cristian Traìna
    Nov 14 '18 at 11:41






  • 1





    Then, Angular works mainly in a browser but it wasn't designed to run only in a browser. You can use Angular also to create a desktop application or a smartphone application. If it doesn't work so fine in a server is just because it's not mature enough

    – Cristian Traìna
    Nov 14 '18 at 11:44













2












2








2








Sorry about the provocative question title, but really, where are the differences?



As far as I get it, the message is something like: "with SPA there might be some performance problems owed to the fact that the DOM is being processed by the javascript running in the browser; so let us render the pages on the server to eliminate this overhead to make things faster!"



Of course it then might introduce issues due to the fact that Angular was meant to work in the browser, not on Node.js server.



So again my question is are there any differences between Angular Universal and the "good old" server side pages, and what value if any Angular Universal adds in comparison?










share|improve this question














Sorry about the provocative question title, but really, where are the differences?



As far as I get it, the message is something like: "with SPA there might be some performance problems owed to the fact that the DOM is being processed by the javascript running in the browser; so let us render the pages on the server to eliminate this overhead to make things faster!"



Of course it then might introduce issues due to the fact that Angular was meant to work in the browser, not on Node.js server.



So again my question is are there any differences between Angular Universal and the "good old" server side pages, and what value if any Angular Universal adds in comparison?







angular angular-universal






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 14 '18 at 11:17









John DonnJohn Donn

965829




965829












  • With server side rendering you are pre-rendering a SPA, you're just delegating all the job of the browser to a server. There's no connection with JSP/AP

    – Cristian Traìna
    Nov 14 '18 at 11:41






  • 1





    Then, Angular works mainly in a browser but it wasn't designed to run only in a browser. You can use Angular also to create a desktop application or a smartphone application. If it doesn't work so fine in a server is just because it's not mature enough

    – Cristian Traìna
    Nov 14 '18 at 11:44

















  • With server side rendering you are pre-rendering a SPA, you're just delegating all the job of the browser to a server. There's no connection with JSP/AP

    – Cristian Traìna
    Nov 14 '18 at 11:41






  • 1





    Then, Angular works mainly in a browser but it wasn't designed to run only in a browser. You can use Angular also to create a desktop application or a smartphone application. If it doesn't work so fine in a server is just because it's not mature enough

    – Cristian Traìna
    Nov 14 '18 at 11:44
















With server side rendering you are pre-rendering a SPA, you're just delegating all the job of the browser to a server. There's no connection with JSP/AP

– Cristian Traìna
Nov 14 '18 at 11:41





With server side rendering you are pre-rendering a SPA, you're just delegating all the job of the browser to a server. There's no connection with JSP/AP

– Cristian Traìna
Nov 14 '18 at 11:41




1




1





Then, Angular works mainly in a browser but it wasn't designed to run only in a browser. You can use Angular also to create a desktop application or a smartphone application. If it doesn't work so fine in a server is just because it's not mature enough

– Cristian Traìna
Nov 14 '18 at 11:44





Then, Angular works mainly in a browser but it wasn't designed to run only in a browser. You can use Angular also to create a desktop application or a smartphone application. If it doesn't work so fine in a server is just because it's not mature enough

– Cristian Traìna
Nov 14 '18 at 11:44












1 Answer
1






active

oldest

votes


















1














The difference is that angular universal just renders the first page. It then transfers the state to the browser and will not do another server roundtrip. In JSP this is different. The State will only be kept on the server and you have to do another server roundtrip if you want to display a new page for example.






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53298970%2fisnt-angular-universal-just-the-same-old-jsp-asp-pages-only-less-coherent-and%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    The difference is that angular universal just renders the first page. It then transfers the state to the browser and will not do another server roundtrip. In JSP this is different. The State will only be kept on the server and you have to do another server roundtrip if you want to display a new page for example.






    share|improve this answer



























      1














      The difference is that angular universal just renders the first page. It then transfers the state to the browser and will not do another server roundtrip. In JSP this is different. The State will only be kept on the server and you have to do another server roundtrip if you want to display a new page for example.






      share|improve this answer

























        1












        1








        1







        The difference is that angular universal just renders the first page. It then transfers the state to the browser and will not do another server roundtrip. In JSP this is different. The State will only be kept on the server and you have to do another server roundtrip if you want to display a new page for example.






        share|improve this answer













        The difference is that angular universal just renders the first page. It then transfers the state to the browser and will not do another server roundtrip. In JSP this is different. The State will only be kept on the server and you have to do another server roundtrip if you want to display a new page for example.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 14 '18 at 12:16









        pascalpuetzpascalpuetz

        37619




        37619



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53298970%2fisnt-angular-universal-just-the-same-old-jsp-asp-pages-only-less-coherent-and%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Top Tejano songwriter Luis Silva dead of heart attack at 64

            ReactJS Fetched API data displays live - need Data displayed static

            政党