Skip to content
Loading
Uncaught Syntax Error  
  • `  
  • })  
  • This above type of code is used in angular 2+ and cannot be used in Angular Js version. 
    +2
  • 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
  • Rijwan Ansari
    Add type="module"  in your index page scripts.
     
    ex
     
    +2
  • _Layout.cshtml
     
     
    I still get that error, what am i missing? 
    +1
  • Sachin Singh
    Inside the Layout or Index page change this
     

     to

    +1