Hi team
I need some help, i have an Angular js file called "Modal.js" sitting under Script folder on mvc asp.net project and have installed Angular JS using command on nu-get. Let me share the error, basically want to create modal popup using Angular js on my front end.
// Angular js
import { Component, Input } from '@angular/core'; // Error here Uncaught SyntaxError: Cannot use import statement outside a module"
import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'ngb-modal-content',
templateL `
Hi there!
Hello, {{name}}!
`
})
// index.chstml
Rijwan AnsariPosted Sep 23, 2021, 12:45 PM
Guest UserPosted Sep 23, 2021, 12:30 PM
Rijwan AnsariPosted Sep 23, 2021, 12:26 PM
class
="modal-title">Hi there!Hello, {{name}}!
Guest UserPosted Sep 23, 2021, 12:20 PM
Hi there!
Hello, {{name}}!
Rijwan AnsariPosted Sep 23, 2021, 11:55 AM
Guest UserPosted Sep 23, 2021, 9:31 AM
Sachin SinghPosted Sep 23, 2021, 9:30 AM
to