-
Notifications
You must be signed in to change notification settings - Fork 98
Wrapped url path in custom class and expose as signal from Navigation… #2267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Wrapped url path in custom class and expose as signal from Navigation… #2267
Conversation
web/src/app/components/job-list-item/job-list-item.component.ts
Outdated
Show resolved
Hide resolved
| surveyId?: string | null; | ||
| json = ''; | ||
|
|
||
| private surveyIdSignal = this.navigationService.getSurveyId(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re need to remove this call.
| private subscription = new Subscription(); | ||
| export class EditSurveyComponent { | ||
| private urlSignal = this.navigationService.getUrl(); | ||
| private surveyIdSignal = this.navigationService.getSurveyId(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not exist.
| activeSurvey$: Observable<Survey>; | ||
| private subscription = new Subscription(); | ||
| export class MainPageContainerComponent { | ||
| private surveyIdSignal = this.navigationService.getSurveyId(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
| return this.urlParamsSignal; | ||
| } | ||
|
|
||
| getSurveyId(): Signal<string | null> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This getFooId methods should be deleted.
closes #1693