unable to re-invoke the button after dynamic addition/deletion in angular2 +












2














I have created a textbox and attached add (+) and delete (-) buttons horizontally. The first button doesn't have a delete section. Its image is -
image- addnode -1



Here, i make the add (+) button disappear after first add because of coding dependency.



Now after the required additions/deletions , i get UI as -



Image 2



**console output **



 inside addOne(), ngModel = 1
inside addOne , selectedAPIName = ["1"]
inside addOneMore , selectedAPIName = (2) ["1", "2"]
inside addOneMore , selectedAPIName = (3) ["1", "2", "3"]
inside addOneMore , selectedAPIName = (4) ["1", "2", "3", "4"]


However, after clicking on the delete button repeatedly, i end up like this, without any buttons to re-start or re-invoke after all deletions-



Image 3



Please help . Is there anyway to get the again start over again without page reload ?



code-
app.component.html



<div *ngIf="addContainer">
<p style="margin-left: 200px; font-size:18px">Please enter the API Object -</p>

<table align="center">

<tbody>
<tr>
<td>
<input *ngIf="addMore" type="text" placeholder="Enter a Node" [(ngModel)]="firstApiMining">
</td>
<td>
<button type="button" style="margin-left: 10px" *ngIf="clickAgain" (click)="addOne(firstApiMining)" class="btn btn-success"> + </button>
</td>
<!-- <td>
<button type="button" style="margin-left: 10px" class="btn btn-danger"> - </button>
</td> -->
</tr>



<tr *ngFor="let container of containers; let i = index;" [(ngModel)]="miningname" #myElement ngDefaultControl>
<ng-container>
<td id="1myElement">
<input *ngIf="addMore" type="text" placeholder="Enter a Node">
</td>
<td id="1myElement">
<button type="button" style="margin-left: 10px" (click)="addOneMore(miningname)" class="btn btn-success"> + </button>
</td>
<td>
<button type="button" style="margin-left: 10px" (click)="deleteOneMore(i)" class="btn btn-danger"> - </button>
</td>
</ng-container>
</tr>



<tr>

<td style="text-align:center">
<button type="button" (click)="showGraphs()" class="btn btn-dark">Search</button>
</td>
</tr>
</tbody>
</table>

</div>


app.component.ts



 addOne(firstApiMining){
this.addContainer = true;
this.addMore = true;
this.clickAgain = false;
this.containers.push(this.containers.length);
console.log("inside addOne(), ngModel =", firstApiMining);
this.selectedAPIName.push(firstApiMining);
console.log("inside addOne , selectedAPIName =", this.selectedAPIName)
}


addOneMore(moreAPIName) {

this.addContainer = true;
this.addMore = true;
this.containers.push(this.containers.length);
this.selectedAPIName.push(moreAPIName);
console.log("inside addOneMore , selectedAPIName =", this.selectedAPIName);
}

deleteOneMore(index){

this.containers.splice(index, 1);
console.log("this.index =", index)
console.log("inside delete , api-mining-ngmodel-name = ", this.miningname);
this.selectedAPIName.splice(index+1,1);
console.log("inside deleteOneMore(), this.selectedAPIName =", this.selectedAPIName);
}


showGraphs() {
console.log("inside showGraphs()")
this.showEwayBill = true;
this.showCollection = true;
this.EwayBill();

}


Issue 2



Please help me resolve this-



I am able to delete in the first go . But when i deleted all the previous text-boxes, I am left with this -



image1



console output



 inside deleteOneMore(), this.selectedAPIName = ["1"]


And clicking the add (+)button again, i get this output



image 2



**console output **



 inside addOne , selectedAPIName = (2) ["1", "1"]


here --> "1" is repeated, so the sequence of numbers is uneven and there is issue while deleting the relevant textbox value










share|improve this question





























    2














    I have created a textbox and attached add (+) and delete (-) buttons horizontally. The first button doesn't have a delete section. Its image is -
    image- addnode -1



    Here, i make the add (+) button disappear after first add because of coding dependency.



    Now after the required additions/deletions , i get UI as -



    Image 2



    **console output **



     inside addOne(), ngModel = 1
    inside addOne , selectedAPIName = ["1"]
    inside addOneMore , selectedAPIName = (2) ["1", "2"]
    inside addOneMore , selectedAPIName = (3) ["1", "2", "3"]
    inside addOneMore , selectedAPIName = (4) ["1", "2", "3", "4"]


    However, after clicking on the delete button repeatedly, i end up like this, without any buttons to re-start or re-invoke after all deletions-



    Image 3



    Please help . Is there anyway to get the again start over again without page reload ?



    code-
    app.component.html



    <div *ngIf="addContainer">
    <p style="margin-left: 200px; font-size:18px">Please enter the API Object -</p>

    <table align="center">

    <tbody>
    <tr>
    <td>
    <input *ngIf="addMore" type="text" placeholder="Enter a Node" [(ngModel)]="firstApiMining">
    </td>
    <td>
    <button type="button" style="margin-left: 10px" *ngIf="clickAgain" (click)="addOne(firstApiMining)" class="btn btn-success"> + </button>
    </td>
    <!-- <td>
    <button type="button" style="margin-left: 10px" class="btn btn-danger"> - </button>
    </td> -->
    </tr>



    <tr *ngFor="let container of containers; let i = index;" [(ngModel)]="miningname" #myElement ngDefaultControl>
    <ng-container>
    <td id="1myElement">
    <input *ngIf="addMore" type="text" placeholder="Enter a Node">
    </td>
    <td id="1myElement">
    <button type="button" style="margin-left: 10px" (click)="addOneMore(miningname)" class="btn btn-success"> + </button>
    </td>
    <td>
    <button type="button" style="margin-left: 10px" (click)="deleteOneMore(i)" class="btn btn-danger"> - </button>
    </td>
    </ng-container>
    </tr>



    <tr>

    <td style="text-align:center">
    <button type="button" (click)="showGraphs()" class="btn btn-dark">Search</button>
    </td>
    </tr>
    </tbody>
    </table>

    </div>


    app.component.ts



     addOne(firstApiMining){
    this.addContainer = true;
    this.addMore = true;
    this.clickAgain = false;
    this.containers.push(this.containers.length);
    console.log("inside addOne(), ngModel =", firstApiMining);
    this.selectedAPIName.push(firstApiMining);
    console.log("inside addOne , selectedAPIName =", this.selectedAPIName)
    }


    addOneMore(moreAPIName) {

    this.addContainer = true;
    this.addMore = true;
    this.containers.push(this.containers.length);
    this.selectedAPIName.push(moreAPIName);
    console.log("inside addOneMore , selectedAPIName =", this.selectedAPIName);
    }

    deleteOneMore(index){

    this.containers.splice(index, 1);
    console.log("this.index =", index)
    console.log("inside delete , api-mining-ngmodel-name = ", this.miningname);
    this.selectedAPIName.splice(index+1,1);
    console.log("inside deleteOneMore(), this.selectedAPIName =", this.selectedAPIName);
    }


    showGraphs() {
    console.log("inside showGraphs()")
    this.showEwayBill = true;
    this.showCollection = true;
    this.EwayBill();

    }


    Issue 2



    Please help me resolve this-



    I am able to delete in the first go . But when i deleted all the previous text-boxes, I am left with this -



    image1



    console output



     inside deleteOneMore(), this.selectedAPIName = ["1"]


    And clicking the add (+)button again, i get this output



    image 2



    **console output **



     inside addOne , selectedAPIName = (2) ["1", "1"]


    here --> "1" is repeated, so the sequence of numbers is uneven and there is issue while deleting the relevant textbox value










    share|improve this question



























      2












      2








      2







      I have created a textbox and attached add (+) and delete (-) buttons horizontally. The first button doesn't have a delete section. Its image is -
      image- addnode -1



      Here, i make the add (+) button disappear after first add because of coding dependency.



      Now after the required additions/deletions , i get UI as -



      Image 2



      **console output **



       inside addOne(), ngModel = 1
      inside addOne , selectedAPIName = ["1"]
      inside addOneMore , selectedAPIName = (2) ["1", "2"]
      inside addOneMore , selectedAPIName = (3) ["1", "2", "3"]
      inside addOneMore , selectedAPIName = (4) ["1", "2", "3", "4"]


      However, after clicking on the delete button repeatedly, i end up like this, without any buttons to re-start or re-invoke after all deletions-



      Image 3



      Please help . Is there anyway to get the again start over again without page reload ?



      code-
      app.component.html



      <div *ngIf="addContainer">
      <p style="margin-left: 200px; font-size:18px">Please enter the API Object -</p>

      <table align="center">

      <tbody>
      <tr>
      <td>
      <input *ngIf="addMore" type="text" placeholder="Enter a Node" [(ngModel)]="firstApiMining">
      </td>
      <td>
      <button type="button" style="margin-left: 10px" *ngIf="clickAgain" (click)="addOne(firstApiMining)" class="btn btn-success"> + </button>
      </td>
      <!-- <td>
      <button type="button" style="margin-left: 10px" class="btn btn-danger"> - </button>
      </td> -->
      </tr>



      <tr *ngFor="let container of containers; let i = index;" [(ngModel)]="miningname" #myElement ngDefaultControl>
      <ng-container>
      <td id="1myElement">
      <input *ngIf="addMore" type="text" placeholder="Enter a Node">
      </td>
      <td id="1myElement">
      <button type="button" style="margin-left: 10px" (click)="addOneMore(miningname)" class="btn btn-success"> + </button>
      </td>
      <td>
      <button type="button" style="margin-left: 10px" (click)="deleteOneMore(i)" class="btn btn-danger"> - </button>
      </td>
      </ng-container>
      </tr>



      <tr>

      <td style="text-align:center">
      <button type="button" (click)="showGraphs()" class="btn btn-dark">Search</button>
      </td>
      </tr>
      </tbody>
      </table>

      </div>


      app.component.ts



       addOne(firstApiMining){
      this.addContainer = true;
      this.addMore = true;
      this.clickAgain = false;
      this.containers.push(this.containers.length);
      console.log("inside addOne(), ngModel =", firstApiMining);
      this.selectedAPIName.push(firstApiMining);
      console.log("inside addOne , selectedAPIName =", this.selectedAPIName)
      }


      addOneMore(moreAPIName) {

      this.addContainer = true;
      this.addMore = true;
      this.containers.push(this.containers.length);
      this.selectedAPIName.push(moreAPIName);
      console.log("inside addOneMore , selectedAPIName =", this.selectedAPIName);
      }

      deleteOneMore(index){

      this.containers.splice(index, 1);
      console.log("this.index =", index)
      console.log("inside delete , api-mining-ngmodel-name = ", this.miningname);
      this.selectedAPIName.splice(index+1,1);
      console.log("inside deleteOneMore(), this.selectedAPIName =", this.selectedAPIName);
      }


      showGraphs() {
      console.log("inside showGraphs()")
      this.showEwayBill = true;
      this.showCollection = true;
      this.EwayBill();

      }


      Issue 2



      Please help me resolve this-



      I am able to delete in the first go . But when i deleted all the previous text-boxes, I am left with this -



      image1



      console output



       inside deleteOneMore(), this.selectedAPIName = ["1"]


      And clicking the add (+)button again, i get this output



      image 2



      **console output **



       inside addOne , selectedAPIName = (2) ["1", "1"]


      here --> "1" is repeated, so the sequence of numbers is uneven and there is issue while deleting the relevant textbox value










      share|improve this question















      I have created a textbox and attached add (+) and delete (-) buttons horizontally. The first button doesn't have a delete section. Its image is -
      image- addnode -1



      Here, i make the add (+) button disappear after first add because of coding dependency.



      Now after the required additions/deletions , i get UI as -



      Image 2



      **console output **



       inside addOne(), ngModel = 1
      inside addOne , selectedAPIName = ["1"]
      inside addOneMore , selectedAPIName = (2) ["1", "2"]
      inside addOneMore , selectedAPIName = (3) ["1", "2", "3"]
      inside addOneMore , selectedAPIName = (4) ["1", "2", "3", "4"]


      However, after clicking on the delete button repeatedly, i end up like this, without any buttons to re-start or re-invoke after all deletions-



      Image 3



      Please help . Is there anyway to get the again start over again without page reload ?



      code-
      app.component.html



      <div *ngIf="addContainer">
      <p style="margin-left: 200px; font-size:18px">Please enter the API Object -</p>

      <table align="center">

      <tbody>
      <tr>
      <td>
      <input *ngIf="addMore" type="text" placeholder="Enter a Node" [(ngModel)]="firstApiMining">
      </td>
      <td>
      <button type="button" style="margin-left: 10px" *ngIf="clickAgain" (click)="addOne(firstApiMining)" class="btn btn-success"> + </button>
      </td>
      <!-- <td>
      <button type="button" style="margin-left: 10px" class="btn btn-danger"> - </button>
      </td> -->
      </tr>



      <tr *ngFor="let container of containers; let i = index;" [(ngModel)]="miningname" #myElement ngDefaultControl>
      <ng-container>
      <td id="1myElement">
      <input *ngIf="addMore" type="text" placeholder="Enter a Node">
      </td>
      <td id="1myElement">
      <button type="button" style="margin-left: 10px" (click)="addOneMore(miningname)" class="btn btn-success"> + </button>
      </td>
      <td>
      <button type="button" style="margin-left: 10px" (click)="deleteOneMore(i)" class="btn btn-danger"> - </button>
      </td>
      </ng-container>
      </tr>



      <tr>

      <td style="text-align:center">
      <button type="button" (click)="showGraphs()" class="btn btn-dark">Search</button>
      </td>
      </tr>
      </tbody>
      </table>

      </div>


      app.component.ts



       addOne(firstApiMining){
      this.addContainer = true;
      this.addMore = true;
      this.clickAgain = false;
      this.containers.push(this.containers.length);
      console.log("inside addOne(), ngModel =", firstApiMining);
      this.selectedAPIName.push(firstApiMining);
      console.log("inside addOne , selectedAPIName =", this.selectedAPIName)
      }


      addOneMore(moreAPIName) {

      this.addContainer = true;
      this.addMore = true;
      this.containers.push(this.containers.length);
      this.selectedAPIName.push(moreAPIName);
      console.log("inside addOneMore , selectedAPIName =", this.selectedAPIName);
      }

      deleteOneMore(index){

      this.containers.splice(index, 1);
      console.log("this.index =", index)
      console.log("inside delete , api-mining-ngmodel-name = ", this.miningname);
      this.selectedAPIName.splice(index+1,1);
      console.log("inside deleteOneMore(), this.selectedAPIName =", this.selectedAPIName);
      }


      showGraphs() {
      console.log("inside showGraphs()")
      this.showEwayBill = true;
      this.showCollection = true;
      this.EwayBill();

      }


      Issue 2



      Please help me resolve this-



      I am able to delete in the first go . But when i deleted all the previous text-boxes, I am left with this -



      image1



      console output



       inside deleteOneMore(), this.selectedAPIName = ["1"]


      And clicking the add (+)button again, i get this output



      image 2



      **console output **



       inside addOne , selectedAPIName = (2) ["1", "1"]


      here --> "1" is repeated, so the sequence of numbers is uneven and there is issue while deleting the relevant textbox value







      html angular html5






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 12 at 11:06

























      asked Nov 12 at 9:50









      Techdive

      20516




      20516
























          1 Answer
          1






          active

          oldest

          votes


















          2














          when you delete an item you need to check if their is no more items and if true enable the add button of the first item :



          deleteOneMore(index){
          this.containers.splice(index, 1);
          if(this.containers.length == 0){
          this.clickAgain = true;
          }
          console.log("this.index =", index)
          console.log("inside delete , api-mining-ngmodel-name = ", this.miningname);
          this.selectedAPIName.splice(index+1,1);
          console.log("inside deleteOneMore(), this.selectedAPIName =", this.selectedAPIName);
          }





          share|improve this answer

















          • 1




            Thank you. It works
            – Techdive
            Nov 12 at 10:01










          • please accept the answer as the correct answer to informs others that your issue is resolved
            – Mustapha Larhrouch
            Nov 12 at 10:05










          • can you please help me in foolproofing the code. Because, the delete sequence when done randomly and non-sequentially after the first chance .. like on second chance when all the text-boxes are deleted and started anew, we don't get correct deletions. Like , after first deletion i get repeat value - inside addOne , selectedAPIName = (2) ["1", "1"]
            – Techdive
            Nov 12 at 10:53












          • i didn't understand
            – Mustapha Larhrouch
            Nov 12 at 10:57










          • Hi Mustapha, I added my query in Issue 2 . Please help
            – Techdive
            Nov 12 at 11:07











          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%2f53259542%2funable-to-re-invoke-the-button-after-dynamic-addition-deletion-in-angular2%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









          2














          when you delete an item you need to check if their is no more items and if true enable the add button of the first item :



          deleteOneMore(index){
          this.containers.splice(index, 1);
          if(this.containers.length == 0){
          this.clickAgain = true;
          }
          console.log("this.index =", index)
          console.log("inside delete , api-mining-ngmodel-name = ", this.miningname);
          this.selectedAPIName.splice(index+1,1);
          console.log("inside deleteOneMore(), this.selectedAPIName =", this.selectedAPIName);
          }





          share|improve this answer

















          • 1




            Thank you. It works
            – Techdive
            Nov 12 at 10:01










          • please accept the answer as the correct answer to informs others that your issue is resolved
            – Mustapha Larhrouch
            Nov 12 at 10:05










          • can you please help me in foolproofing the code. Because, the delete sequence when done randomly and non-sequentially after the first chance .. like on second chance when all the text-boxes are deleted and started anew, we don't get correct deletions. Like , after first deletion i get repeat value - inside addOne , selectedAPIName = (2) ["1", "1"]
            – Techdive
            Nov 12 at 10:53












          • i didn't understand
            – Mustapha Larhrouch
            Nov 12 at 10:57










          • Hi Mustapha, I added my query in Issue 2 . Please help
            – Techdive
            Nov 12 at 11:07
















          2














          when you delete an item you need to check if their is no more items and if true enable the add button of the first item :



          deleteOneMore(index){
          this.containers.splice(index, 1);
          if(this.containers.length == 0){
          this.clickAgain = true;
          }
          console.log("this.index =", index)
          console.log("inside delete , api-mining-ngmodel-name = ", this.miningname);
          this.selectedAPIName.splice(index+1,1);
          console.log("inside deleteOneMore(), this.selectedAPIName =", this.selectedAPIName);
          }





          share|improve this answer

















          • 1




            Thank you. It works
            – Techdive
            Nov 12 at 10:01










          • please accept the answer as the correct answer to informs others that your issue is resolved
            – Mustapha Larhrouch
            Nov 12 at 10:05










          • can you please help me in foolproofing the code. Because, the delete sequence when done randomly and non-sequentially after the first chance .. like on second chance when all the text-boxes are deleted and started anew, we don't get correct deletions. Like , after first deletion i get repeat value - inside addOne , selectedAPIName = (2) ["1", "1"]
            – Techdive
            Nov 12 at 10:53












          • i didn't understand
            – Mustapha Larhrouch
            Nov 12 at 10:57










          • Hi Mustapha, I added my query in Issue 2 . Please help
            – Techdive
            Nov 12 at 11:07














          2












          2








          2






          when you delete an item you need to check if their is no more items and if true enable the add button of the first item :



          deleteOneMore(index){
          this.containers.splice(index, 1);
          if(this.containers.length == 0){
          this.clickAgain = true;
          }
          console.log("this.index =", index)
          console.log("inside delete , api-mining-ngmodel-name = ", this.miningname);
          this.selectedAPIName.splice(index+1,1);
          console.log("inside deleteOneMore(), this.selectedAPIName =", this.selectedAPIName);
          }





          share|improve this answer












          when you delete an item you need to check if their is no more items and if true enable the add button of the first item :



          deleteOneMore(index){
          this.containers.splice(index, 1);
          if(this.containers.length == 0){
          this.clickAgain = true;
          }
          console.log("this.index =", index)
          console.log("inside delete , api-mining-ngmodel-name = ", this.miningname);
          this.selectedAPIName.splice(index+1,1);
          console.log("inside deleteOneMore(), this.selectedAPIName =", this.selectedAPIName);
          }






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 12 at 9:59









          Mustapha Larhrouch

          2,6192722




          2,6192722








          • 1




            Thank you. It works
            – Techdive
            Nov 12 at 10:01










          • please accept the answer as the correct answer to informs others that your issue is resolved
            – Mustapha Larhrouch
            Nov 12 at 10:05










          • can you please help me in foolproofing the code. Because, the delete sequence when done randomly and non-sequentially after the first chance .. like on second chance when all the text-boxes are deleted and started anew, we don't get correct deletions. Like , after first deletion i get repeat value - inside addOne , selectedAPIName = (2) ["1", "1"]
            – Techdive
            Nov 12 at 10:53












          • i didn't understand
            – Mustapha Larhrouch
            Nov 12 at 10:57










          • Hi Mustapha, I added my query in Issue 2 . Please help
            – Techdive
            Nov 12 at 11:07














          • 1




            Thank you. It works
            – Techdive
            Nov 12 at 10:01










          • please accept the answer as the correct answer to informs others that your issue is resolved
            – Mustapha Larhrouch
            Nov 12 at 10:05










          • can you please help me in foolproofing the code. Because, the delete sequence when done randomly and non-sequentially after the first chance .. like on second chance when all the text-boxes are deleted and started anew, we don't get correct deletions. Like , after first deletion i get repeat value - inside addOne , selectedAPIName = (2) ["1", "1"]
            – Techdive
            Nov 12 at 10:53












          • i didn't understand
            – Mustapha Larhrouch
            Nov 12 at 10:57










          • Hi Mustapha, I added my query in Issue 2 . Please help
            – Techdive
            Nov 12 at 11:07








          1




          1




          Thank you. It works
          – Techdive
          Nov 12 at 10:01




          Thank you. It works
          – Techdive
          Nov 12 at 10:01












          please accept the answer as the correct answer to informs others that your issue is resolved
          – Mustapha Larhrouch
          Nov 12 at 10:05




          please accept the answer as the correct answer to informs others that your issue is resolved
          – Mustapha Larhrouch
          Nov 12 at 10:05












          can you please help me in foolproofing the code. Because, the delete sequence when done randomly and non-sequentially after the first chance .. like on second chance when all the text-boxes are deleted and started anew, we don't get correct deletions. Like , after first deletion i get repeat value - inside addOne , selectedAPIName = (2) ["1", "1"]
          – Techdive
          Nov 12 at 10:53






          can you please help me in foolproofing the code. Because, the delete sequence when done randomly and non-sequentially after the first chance .. like on second chance when all the text-boxes are deleted and started anew, we don't get correct deletions. Like , after first deletion i get repeat value - inside addOne , selectedAPIName = (2) ["1", "1"]
          – Techdive
          Nov 12 at 10:53














          i didn't understand
          – Mustapha Larhrouch
          Nov 12 at 10:57




          i didn't understand
          – Mustapha Larhrouch
          Nov 12 at 10:57












          Hi Mustapha, I added my query in Issue 2 . Please help
          – Techdive
          Nov 12 at 11:07




          Hi Mustapha, I added my query in Issue 2 . Please help
          – Techdive
          Nov 12 at 11:07


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f53259542%2funable-to-re-invoke-the-button-after-dynamic-addition-deletion-in-angular2%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.

          Error while running script in elastic search , gateway timeout

          Adding quotations to stringified JSON object values