TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Reena Lakra
NA
146
56k
List not refresh after close modal popup?
May 1 2018 7:36 AM
How can refresh a list after a close modal popup in angular?
I am using a list, where the edit button is present, on that button, I passed data to modal popup, update it and close the modal popup, but the list cannot be refresh.
The code on list component is :
openStudentDialog(rowData: any, statusValue: any):
void
{
this
.rowRecordId = rowData.recordId;
this
.statusValue = statusValue;
let dialogRef =
this
.dialog.open(StudentUpdateDialog, {
width:
'250px'
,
data: { recordId:
this
.rowRecordId, statusValue: statusValue}
});
this
.getStudentList()
//i am using this but it cannot update the list
}
On Dialog Component code is :-
@Component({
selector:
'student-update-dialog'
,
templateUrl:
'student-update-dialog.html'
,
providers: []
})
export
class
StudentUpdateDialog {
rowData: any =
""
;
status: any;
constructor(
public
dialogRef: MatDialogRef<StudentUpdateDialog >,
@Inject(MAT_DIALOG_DATA)
public
data: any) {
this
.rowData = data;
this
.status =
this
.rowData.statusValue;
}
onNoClick():
void
{
this
.dialogRef.close();
}
SuccessUpdate(data: any) {
}
}
Reply
Answers (
2
)
Anyone can please send me the good link for Angular JS ?
How to use angular 5 script inside jquery for redirection