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
Mohammad Irshad
NA
9.4k
2.1m
Can we use next() method with Observable
Jul 18 2020 12:43 AM
Can we do the same functionality with Observable.
private
messageSubject =
new
Observable<any>();
import { Injectable } from
'@angular/core'
;
import { Observable, Subject } from
'rxjs'
;
@Injectable({ providedIn:
'root'
})
export
class
MessageService {
private
messageSubject =
new
Subject<any>();
sendMessage(dialog: {type: number, message:
string
}) {
this
.messageSubject.next(dialog);
}
clearMessage() {
this
.messageSubject.next();
}
getMessage(): Observable<any> {
return
this
.messageSubject.asObservable();
}
}
Reply
Answers (
1
)
find @ and # handler in a given HTML content
Object array column position has to be change