how to get multiple object array value into view just using 1 ng-repeat in angular-laravel












0















i'm new with laravel and angular things. so i try to get data from 3 table and create 3 different variable with model in each variable and in angular controller i got data result as $scope.document_url. first this is my 3 object data :



data



and i want to know is it possible to get all 3 object into 1 in just using 1 ng-repeat? this is what i do in my angular view :



<tr md-row md-auto-select ng-repeat="(key, value) in document_url[0]">


so i want just document_url not document_url[0] to get all array value in all object in 1 ng-repeat. thanks for helping me sorry bad english. if you dont understand my explanation i will try to explain more detail.










share|improve this question





























    0















    i'm new with laravel and angular things. so i try to get data from 3 table and create 3 different variable with model in each variable and in angular controller i got data result as $scope.document_url. first this is my 3 object data :



    data



    and i want to know is it possible to get all 3 object into 1 in just using 1 ng-repeat? this is what i do in my angular view :



    <tr md-row md-auto-select ng-repeat="(key, value) in document_url[0]">


    so i want just document_url not document_url[0] to get all array value in all object in 1 ng-repeat. thanks for helping me sorry bad english. if you dont understand my explanation i will try to explain more detail.










    share|improve this question



























      0












      0








      0








      i'm new with laravel and angular things. so i try to get data from 3 table and create 3 different variable with model in each variable and in angular controller i got data result as $scope.document_url. first this is my 3 object data :



      data



      and i want to know is it possible to get all 3 object into 1 in just using 1 ng-repeat? this is what i do in my angular view :



      <tr md-row md-auto-select ng-repeat="(key, value) in document_url[0]">


      so i want just document_url not document_url[0] to get all array value in all object in 1 ng-repeat. thanks for helping me sorry bad english. if you dont understand my explanation i will try to explain more detail.










      share|improve this question
















      i'm new with laravel and angular things. so i try to get data from 3 table and create 3 different variable with model in each variable and in angular controller i got data result as $scope.document_url. first this is my 3 object data :



      data



      and i want to know is it possible to get all 3 object into 1 in just using 1 ng-repeat? this is what i do in my angular view :



      <tr md-row md-auto-select ng-repeat="(key, value) in document_url[0]">


      so i want just document_url not document_url[0] to get all array value in all object in 1 ng-repeat. thanks for helping me sorry bad english. if you dont understand my explanation i will try to explain more detail.







      arrays angularjs laravel object angularjs-ng-repeat






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 13 '18 at 10:25









      trichetriche

      26.1k42152




      26.1k42152










      asked Nov 13 '18 at 10:13









      Ihsan DnIhsan Dn

      257




      257
























          1 Answer
          1






          active

          oldest

          votes


















          1














          Could you not use two ng-repeats one inside the other?



          <tr md-row md-auto-select ng-repeat="outerObj in main_array">
          <span ng-repeat="innerObj in outerObj">{{outerObj.Id}} - {{innerObj.Id}}</span>
          </tr>





          share|improve this answer
























          • still not working as i hope but thanks for advice

            – Ihsan Dn
            Nov 14 '18 at 10:57











          • the above will work you can use 3 repeats and then access all objects from the innermost repeat it will work I have done this many times stick at it

            – tfa
            Nov 14 '18 at 11:43











          • how to know the object values i get from each ng-repeat? like console.log to see array values after ng-repeat. thanks

            – Ihsan Dn
            Nov 16 '18 at 3:15











          • okay it works but can't use <span> to show data without <td> and i need to add ng-repeat and span in every <td> to make it works. thanks for advice btw.

            – Ihsan Dn
            Nov 16 '18 at 4:13











          • yes forgot the td glad you got it working

            – tfa
            Nov 19 '18 at 14:06











          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%2f53278642%2fhow-to-get-multiple-object-array-value-into-view-just-using-1-ng-repeat-in-angul%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














          Could you not use two ng-repeats one inside the other?



          <tr md-row md-auto-select ng-repeat="outerObj in main_array">
          <span ng-repeat="innerObj in outerObj">{{outerObj.Id}} - {{innerObj.Id}}</span>
          </tr>





          share|improve this answer
























          • still not working as i hope but thanks for advice

            – Ihsan Dn
            Nov 14 '18 at 10:57











          • the above will work you can use 3 repeats and then access all objects from the innermost repeat it will work I have done this many times stick at it

            – tfa
            Nov 14 '18 at 11:43











          • how to know the object values i get from each ng-repeat? like console.log to see array values after ng-repeat. thanks

            – Ihsan Dn
            Nov 16 '18 at 3:15











          • okay it works but can't use <span> to show data without <td> and i need to add ng-repeat and span in every <td> to make it works. thanks for advice btw.

            – Ihsan Dn
            Nov 16 '18 at 4:13











          • yes forgot the td glad you got it working

            – tfa
            Nov 19 '18 at 14:06
















          1














          Could you not use two ng-repeats one inside the other?



          <tr md-row md-auto-select ng-repeat="outerObj in main_array">
          <span ng-repeat="innerObj in outerObj">{{outerObj.Id}} - {{innerObj.Id}}</span>
          </tr>





          share|improve this answer
























          • still not working as i hope but thanks for advice

            – Ihsan Dn
            Nov 14 '18 at 10:57











          • the above will work you can use 3 repeats and then access all objects from the innermost repeat it will work I have done this many times stick at it

            – tfa
            Nov 14 '18 at 11:43











          • how to know the object values i get from each ng-repeat? like console.log to see array values after ng-repeat. thanks

            – Ihsan Dn
            Nov 16 '18 at 3:15











          • okay it works but can't use <span> to show data without <td> and i need to add ng-repeat and span in every <td> to make it works. thanks for advice btw.

            – Ihsan Dn
            Nov 16 '18 at 4:13











          • yes forgot the td glad you got it working

            – tfa
            Nov 19 '18 at 14:06














          1












          1








          1







          Could you not use two ng-repeats one inside the other?



          <tr md-row md-auto-select ng-repeat="outerObj in main_array">
          <span ng-repeat="innerObj in outerObj">{{outerObj.Id}} - {{innerObj.Id}}</span>
          </tr>





          share|improve this answer













          Could you not use two ng-repeats one inside the other?



          <tr md-row md-auto-select ng-repeat="outerObj in main_array">
          <span ng-repeat="innerObj in outerObj">{{outerObj.Id}} - {{innerObj.Id}}</span>
          </tr>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 13 '18 at 13:56









          tfatfa

          348310




          348310













          • still not working as i hope but thanks for advice

            – Ihsan Dn
            Nov 14 '18 at 10:57











          • the above will work you can use 3 repeats and then access all objects from the innermost repeat it will work I have done this many times stick at it

            – tfa
            Nov 14 '18 at 11:43











          • how to know the object values i get from each ng-repeat? like console.log to see array values after ng-repeat. thanks

            – Ihsan Dn
            Nov 16 '18 at 3:15











          • okay it works but can't use <span> to show data without <td> and i need to add ng-repeat and span in every <td> to make it works. thanks for advice btw.

            – Ihsan Dn
            Nov 16 '18 at 4:13











          • yes forgot the td glad you got it working

            – tfa
            Nov 19 '18 at 14:06



















          • still not working as i hope but thanks for advice

            – Ihsan Dn
            Nov 14 '18 at 10:57











          • the above will work you can use 3 repeats and then access all objects from the innermost repeat it will work I have done this many times stick at it

            – tfa
            Nov 14 '18 at 11:43











          • how to know the object values i get from each ng-repeat? like console.log to see array values after ng-repeat. thanks

            – Ihsan Dn
            Nov 16 '18 at 3:15











          • okay it works but can't use <span> to show data without <td> and i need to add ng-repeat and span in every <td> to make it works. thanks for advice btw.

            – Ihsan Dn
            Nov 16 '18 at 4:13











          • yes forgot the td glad you got it working

            – tfa
            Nov 19 '18 at 14:06

















          still not working as i hope but thanks for advice

          – Ihsan Dn
          Nov 14 '18 at 10:57





          still not working as i hope but thanks for advice

          – Ihsan Dn
          Nov 14 '18 at 10:57













          the above will work you can use 3 repeats and then access all objects from the innermost repeat it will work I have done this many times stick at it

          – tfa
          Nov 14 '18 at 11:43





          the above will work you can use 3 repeats and then access all objects from the innermost repeat it will work I have done this many times stick at it

          – tfa
          Nov 14 '18 at 11:43













          how to know the object values i get from each ng-repeat? like console.log to see array values after ng-repeat. thanks

          – Ihsan Dn
          Nov 16 '18 at 3:15





          how to know the object values i get from each ng-repeat? like console.log to see array values after ng-repeat. thanks

          – Ihsan Dn
          Nov 16 '18 at 3:15













          okay it works but can't use <span> to show data without <td> and i need to add ng-repeat and span in every <td> to make it works. thanks for advice btw.

          – Ihsan Dn
          Nov 16 '18 at 4:13





          okay it works but can't use <span> to show data without <td> and i need to add ng-repeat and span in every <td> to make it works. thanks for advice btw.

          – Ihsan Dn
          Nov 16 '18 at 4:13













          yes forgot the td glad you got it working

          – tfa
          Nov 19 '18 at 14:06





          yes forgot the td glad you got it working

          – tfa
          Nov 19 '18 at 14:06


















          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%2f53278642%2fhow-to-get-multiple-object-array-value-into-view-just-using-1-ng-repeat-in-angul%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

          Florida Star v. B. J. F.

          Danny Elfman

          Lugert, Oklahoma