Skip to content
Loading
  
  • class="modal-footer">  
  • "button" class="btn btn-outline-dark" (click)="activeModal.close('Close click')">Close  
  •   
  • `  
  • })  
  • This above type of code is used in angular 2+ and cannot be used in Angular Js version. 
    +2
  • Sachin Singh
    +1
    JavaScript
    Inside the Layout or Index page change this
    JavaScript
    "../src/main.js">

     to

    JavaScript
    "module" src="../src/main.js">
    +1
  • +1
    _Layout.cshtml
     
     
    I still get that error, what am i missing? 
    +1
  • +1
    Hi Rijwan
     
    Have a look at the current logic;
     
    // Angular js
     
    import { Component, Input } from '@angular/core';
    import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';
    @Component({
    selector: 'ngbd-modal-content',
    template: `

    Hello, {{name}}!

    `
    })
     
    // index.cshtml
    IncidentdateTimeBeginEndDuration
    {{e.Incident}}{{e.FromDateTime | date : "yyyy/MM/dd"}}{{e.FromDateTime | date : "HH:mm:ss"}}{{e.ToDate | date : "HH:mm:ss"}}{{TimeDiff(e.FromDateTime,e.ToDate)}} Hours
    // There still an issue, please assist 
    +1
  • +1
    Rijwan
     
    Ok if i am understanding, must this Angular 2 be used on my js file not on index.cshtml? 
    +1