Why can't I iterate over a list of Firebase Img URLS, but can access each on individually?












1















I have an array of Firebase storage URLs that link to images like so:



[
"https://firebasestorage.googleapis.com/v0/b/xyz-app-1540127382149.appspot.com/o/images%2F-LR855-bwb_IuYAFeYlf%2Fyyz-1.jpg?alt=media&token=e39d4dd0-6821-477a-b165-4ead2eb0a8c4",
"https://firebasestorage.googleapis.com/v0/b/xyz-app-1540127382149.appspot.com/o/images%2F-LR855-bwb_IuYAFeYlf%2abc-1.jpg?
]


Paste these into a browser? Works.
Get single item in array and add it to an img element src? Works.



Iterate over the array and try to add each to an img element src? Stack Error.



{{#each images as |img|}}
<div class="carousel-item active">
<img
class="d-block w-100"
src={{img}}
alt="Post Image"
>
</div>
{{/each}}

stack: "Error: Assertion Failed: fullName must be a proper full name


I don't get it. Why can I get a single link in the array and it will display, yet when I iterate over the list I get an error..?










share|improve this question



























    1















    I have an array of Firebase storage URLs that link to images like so:



    [
    "https://firebasestorage.googleapis.com/v0/b/xyz-app-1540127382149.appspot.com/o/images%2F-LR855-bwb_IuYAFeYlf%2Fyyz-1.jpg?alt=media&token=e39d4dd0-6821-477a-b165-4ead2eb0a8c4",
    "https://firebasestorage.googleapis.com/v0/b/xyz-app-1540127382149.appspot.com/o/images%2F-LR855-bwb_IuYAFeYlf%2abc-1.jpg?
    ]


    Paste these into a browser? Works.
    Get single item in array and add it to an img element src? Works.



    Iterate over the array and try to add each to an img element src? Stack Error.



    {{#each images as |img|}}
    <div class="carousel-item active">
    <img
    class="d-block w-100"
    src={{img}}
    alt="Post Image"
    >
    </div>
    {{/each}}

    stack: "Error: Assertion Failed: fullName must be a proper full name


    I don't get it. Why can I get a single link in the array and it will display, yet when I iterate over the list I get an error..?










    share|improve this question

























      1












      1








      1








      I have an array of Firebase storage URLs that link to images like so:



      [
      "https://firebasestorage.googleapis.com/v0/b/xyz-app-1540127382149.appspot.com/o/images%2F-LR855-bwb_IuYAFeYlf%2Fyyz-1.jpg?alt=media&token=e39d4dd0-6821-477a-b165-4ead2eb0a8c4",
      "https://firebasestorage.googleapis.com/v0/b/xyz-app-1540127382149.appspot.com/o/images%2F-LR855-bwb_IuYAFeYlf%2abc-1.jpg?
      ]


      Paste these into a browser? Works.
      Get single item in array and add it to an img element src? Works.



      Iterate over the array and try to add each to an img element src? Stack Error.



      {{#each images as |img|}}
      <div class="carousel-item active">
      <img
      class="d-block w-100"
      src={{img}}
      alt="Post Image"
      >
      </div>
      {{/each}}

      stack: "Error: Assertion Failed: fullName must be a proper full name


      I don't get it. Why can I get a single link in the array and it will display, yet when I iterate over the list I get an error..?










      share|improve this question














      I have an array of Firebase storage URLs that link to images like so:



      [
      "https://firebasestorage.googleapis.com/v0/b/xyz-app-1540127382149.appspot.com/o/images%2F-LR855-bwb_IuYAFeYlf%2Fyyz-1.jpg?alt=media&token=e39d4dd0-6821-477a-b165-4ead2eb0a8c4",
      "https://firebasestorage.googleapis.com/v0/b/xyz-app-1540127382149.appspot.com/o/images%2F-LR855-bwb_IuYAFeYlf%2abc-1.jpg?
      ]


      Paste these into a browser? Works.
      Get single item in array and add it to an img element src? Works.



      Iterate over the array and try to add each to an img element src? Stack Error.



      {{#each images as |img|}}
      <div class="carousel-item active">
      <img
      class="d-block w-100"
      src={{img}}
      alt="Post Image"
      >
      </div>
      {{/each}}

      stack: "Error: Assertion Failed: fullName must be a proper full name


      I don't get it. Why can I get a single link in the array and it will display, yet when I iterate over the list I get an error..?







      firebase loops ember.js






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 '18 at 17:42









      lookininwardlookininward

      15111




      15111
























          1 Answer
          1






          active

          oldest

          votes


















          3














          This error is a result of angle bracket components. The solution would be to use anything other than img here for the loop variable: {{#each images as |img|}}. <img is invoking the block argument (|img|) as a component inside the each.



          So try instead




          {{#each images as |image|}}
          ...
          {{/each}}






          share|improve this answer


























          • Can't believe I missed that. Thank you!

            – lookininward
            Nov 20 '18 at 21:21











          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%2f53398614%2fwhy-cant-i-iterate-over-a-list-of-firebase-img-urls-but-can-access-each-on-ind%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









          3














          This error is a result of angle bracket components. The solution would be to use anything other than img here for the loop variable: {{#each images as |img|}}. <img is invoking the block argument (|img|) as a component inside the each.



          So try instead




          {{#each images as |image|}}
          ...
          {{/each}}






          share|improve this answer


























          • Can't believe I missed that. Thank you!

            – lookininward
            Nov 20 '18 at 21:21
















          3














          This error is a result of angle bracket components. The solution would be to use anything other than img here for the loop variable: {{#each images as |img|}}. <img is invoking the block argument (|img|) as a component inside the each.



          So try instead




          {{#each images as |image|}}
          ...
          {{/each}}






          share|improve this answer


























          • Can't believe I missed that. Thank you!

            – lookininward
            Nov 20 '18 at 21:21














          3












          3








          3







          This error is a result of angle bracket components. The solution would be to use anything other than img here for the loop variable: {{#each images as |img|}}. <img is invoking the block argument (|img|) as a component inside the each.



          So try instead




          {{#each images as |image|}}
          ...
          {{/each}}






          share|improve this answer















          This error is a result of angle bracket components. The solution would be to use anything other than img here for the loop variable: {{#each images as |img|}}. <img is invoking the block argument (|img|) as a component inside the each.



          So try instead




          {{#each images as |image|}}
          ...
          {{/each}}







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 20 '18 at 20:30

























          answered Nov 20 '18 at 20:16









          mistahenrymistahenry

          5,31831829




          5,31831829













          • Can't believe I missed that. Thank you!

            – lookininward
            Nov 20 '18 at 21:21



















          • Can't believe I missed that. Thank you!

            – lookininward
            Nov 20 '18 at 21:21

















          Can't believe I missed that. Thank you!

          – lookininward
          Nov 20 '18 at 21:21





          Can't believe I missed that. Thank you!

          – lookininward
          Nov 20 '18 at 21:21


















          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%2f53398614%2fwhy-cant-i-iterate-over-a-list-of-firebase-img-urls-but-can-access-each-on-ind%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

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          RAC Tourist Trophy