These are chat archives for angular/material

Jul 2017
Jul 29 2017 11:17
  • I am new to angular2 and js.
  • I have 1500 lines of code.
  • in that, I am trying to call the function change listener. it is working in another file, but not working in my file.
  • can you tell why it's happening and how to fix it?
  • I placed debugger inside the function change listener to check whether it's going inside that but it's not going inside that function.
  • in console also I don't see any errors
  • providing relevant code below and whole code in the fiddle, since no place to paste the whole code below
 <label class="fileContainer dragAndDropHolder" >
                    <input type="file" id="attachKickBrowseSim" [class.disabled]="isFingersLocked" (change)="changeListener($event)" />

    /* On Change */
  changeListener($event) : void {

  /*Encode File*/
  swimming(inputValue: any): void { 
    var foul = this;
      var file:File = inputValue.files[0];

        var myReader:FileReader = new FileReader();
        myReader.onloadend = (e) => {
        this.encodeBase64 = myReader.result;
        foul.fileSelect=$("#attachKickBrowseSim").val().replace(/^.*\\/, "");
        foul.dragDrop = foul.clearSim;
        foul.dragDrop= "";
        foul.dragDrop= foul.fileSelect;