Skip to content

Answer:55#1037

Closed
tsironis13 wants to merge 4 commits intotomalaforge:mainfrom
tsironis13:angular-back-button-navigation-challenge
Closed

Answer:55#1037
tsironis13 wants to merge 4 commits intotomalaforge:mainfrom
tsironis13:angular-back-button-navigation-challenge

Conversation

@tsironis13
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added 55 back button navigation answer answer contributor highly contributing to the project to be reviewed PR requests a review labels Jul 6, 2024
@tsironis13
Copy link
Copy Markdown
Contributor Author

@tomalaforge hello! This is my proposed solution...shall I create a link to this page for the UI?

@Injectable({
providedIn: 'root',
})
export class DialogService {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice service, a bit out of the challenge, but great generic service for people to add to their projects 👍

})
export class SimpleActionComponent {
readonly #dialog = inject(MatDialog);
export class SimpleActionComponent implements CanComponentDeactivate {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

component: CanComponentDeactivate,
) => {
return component.canDeactivate ? component.canDeactivate() : true;
};
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tomalaforge
Copy link
Copy Markdown
Owner

I was surprised about the number of change, but you implemented a generic way of displaying dialog. Not really the challenge, but great way to show how to implement generic dialog inside an entreprise application. 🔥
People can get inspired by your implementation. Thanks for sharing

@tomalaforge tomalaforge added answer author answer of author and removed answer answer to be reviewed PR requests a review labels Jul 8, 2024
@tomalaforge
Copy link
Copy Markdown
Owner

@tomalaforge hello! This is my proposed solution...shall I create a link to this page for the UI?

What do you mean?
If it's about the website, the label answer author and the number are enough to link your PR to your challenge 👍

@tsironis13
Copy link
Copy Markdown
Contributor Author

@tomalaforge hello! This is my proposed solution...shall I create a link to this page for the UI?

What do you mean? If it's about the website, the label answer author and the number are enough to link your PR to your challenge 👍

xm yes it works out of the box...thanks

@tsironis13
Copy link
Copy Markdown
Contributor Author

I was surprised about the number of change, but you implemented a generic way of displaying dialog. Not really the challenge, but great way to show how to implement generic dialog inside an entreprise application. 🔥 People can get inspired by your implementation. Thanks for sharing

well thanks first of all!...actually the idea and the purpose of this challenge is to combine both Angular features(like 'CanDeactivate' route guards) with Typescript and generic design patterns to provide a scalable solution. It can moved also to Typescript region/category, if you think it is better suited there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

55 back button navigation answer author answer of author answer answer contributor highly contributing to the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants