How to create a crossplatform angular webapp?









up vote
0
down vote

favorite












I currently have a web browser application developed using Angula 6 + typescript. It is responsive and displays nice in all browser's resolution. But i want now a completely diferent layout for it when it opens in the cellphones.
I started investigating alternatives to do it but i am a little lost as i am new to web development.



Alternatives:



1- use NativeScript with angular (which seems to work really well) and i will be able to share code, split modules and html/css, etc...



2- create 2 different projects and as soon as someone gets inside the url, somehow i will identify the browser is mobile (android or iOS for example) and forward it to the mobile web application URL. But how do i share code between those 2 projecta??



Questions:



1- is there any other alternative?



2- which one do you think is better?



3- i prefer 1st alternative using NativeScript, what are the pros/cons?



I am lost because i am not sure if i really need a crossplatform webapp. I just want to change all the layout but keeping similar functionalities. I will need to share code so that's why i liked the NativeScript alternative but i am not confortable yet to use it. Facebook webpage for example seems to redirect the url to a different application.
I want your opinion to help me decide what would be the best practise considering my scenario and needs.










share|improve this question

























    up vote
    0
    down vote

    favorite












    I currently have a web browser application developed using Angula 6 + typescript. It is responsive and displays nice in all browser's resolution. But i want now a completely diferent layout for it when it opens in the cellphones.
    I started investigating alternatives to do it but i am a little lost as i am new to web development.



    Alternatives:



    1- use NativeScript with angular (which seems to work really well) and i will be able to share code, split modules and html/css, etc...



    2- create 2 different projects and as soon as someone gets inside the url, somehow i will identify the browser is mobile (android or iOS for example) and forward it to the mobile web application URL. But how do i share code between those 2 projecta??



    Questions:



    1- is there any other alternative?



    2- which one do you think is better?



    3- i prefer 1st alternative using NativeScript, what are the pros/cons?



    I am lost because i am not sure if i really need a crossplatform webapp. I just want to change all the layout but keeping similar functionalities. I will need to share code so that's why i liked the NativeScript alternative but i am not confortable yet to use it. Facebook webpage for example seems to redirect the url to a different application.
    I want your opinion to help me decide what would be the best practise considering my scenario and needs.










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I currently have a web browser application developed using Angula 6 + typescript. It is responsive and displays nice in all browser's resolution. But i want now a completely diferent layout for it when it opens in the cellphones.
      I started investigating alternatives to do it but i am a little lost as i am new to web development.



      Alternatives:



      1- use NativeScript with angular (which seems to work really well) and i will be able to share code, split modules and html/css, etc...



      2- create 2 different projects and as soon as someone gets inside the url, somehow i will identify the browser is mobile (android or iOS for example) and forward it to the mobile web application URL. But how do i share code between those 2 projecta??



      Questions:



      1- is there any other alternative?



      2- which one do you think is better?



      3- i prefer 1st alternative using NativeScript, what are the pros/cons?



      I am lost because i am not sure if i really need a crossplatform webapp. I just want to change all the layout but keeping similar functionalities. I will need to share code so that's why i liked the NativeScript alternative but i am not confortable yet to use it. Facebook webpage for example seems to redirect the url to a different application.
      I want your opinion to help me decide what would be the best practise considering my scenario and needs.










      share|improve this question













      I currently have a web browser application developed using Angula 6 + typescript. It is responsive and displays nice in all browser's resolution. But i want now a completely diferent layout for it when it opens in the cellphones.
      I started investigating alternatives to do it but i am a little lost as i am new to web development.



      Alternatives:



      1- use NativeScript with angular (which seems to work really well) and i will be able to share code, split modules and html/css, etc...



      2- create 2 different projects and as soon as someone gets inside the url, somehow i will identify the browser is mobile (android or iOS for example) and forward it to the mobile web application URL. But how do i share code between those 2 projecta??



      Questions:



      1- is there any other alternative?



      2- which one do you think is better?



      3- i prefer 1st alternative using NativeScript, what are the pros/cons?



      I am lost because i am not sure if i really need a crossplatform webapp. I just want to change all the layout but keeping similar functionalities. I will need to share code so that's why i liked the NativeScript alternative but i am not confortable yet to use it. Facebook webpage for example seems to redirect the url to a different application.
      I want your opinion to help me decide what would be the best practise considering my scenario and needs.







      web-applications cross-platform angular2-nativescript






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 9 at 20:32









      Fabio Carvalho

      13310




      13310



























          active

          oldest

          votes











          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',
          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%2f53232891%2fhow-to-create-a-crossplatform-angular-webapp%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53232891%2fhow-to-create-a-crossplatform-angular-webapp%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

          Use pre created SQLite database for Android project in kotlin

          Darth Vader #20

          Ondo