<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Angular Material Confirm Dialog	</title>
	<atom:link href="https://onthecode.co.uk/blog/create-confirm-dialog-angular-material/feed" rel="self" type="application/rss+xml" />
	<link>https://onthecode.co.uk/blog/create-confirm-dialog-angular-material</link>
	<description>onthecode blog</description>
	<lastBuildDate>Wed, 14 Sep 2022 09:05:05 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.3</generator>
	<item>
		<title>
		By: Umut Esen		</title>
		<link>https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-7325</link>

		<dc:creator><![CDATA[Umut Esen]]></dc:creator>
		<pubDate>Sat, 20 Nov 2021 18:39:01 +0000</pubDate>
		<guid isPermaLink="false">https://onthecode.co.uk/?p=933#comment-7325</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-6353&quot;&gt;Penny Thomas&lt;/a&gt;.

Thank you for your message, I have tried to replicate the issue but stackblitz seems to be working ok. Please try downloading the source code.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-6353">Penny Thomas</a>.</p>
<p>Thank you for your message, I have tried to replicate the issue but stackblitz seems to be working ok. Please try downloading the source code.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Penny Thomas		</title>
		<link>https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-6353</link>

		<dc:creator><![CDATA[Penny Thomas]]></dc:creator>
		<pubDate>Thu, 27 May 2021 15:42:29 +0000</pubDate>
		<guid isPermaLink="false">https://onthecode.co.uk/?p=933#comment-6353</guid>

					<description><![CDATA[Seeing an error in stackblitz on the example code in this article:

Error in /~/src/app/confirm-dialog/confirm-dialog.component.ts (44:156)
Cannot access &#039;ConfirmDialogModel&#039; before initialization

This error occurs randomly, have been unable to determine the cause.]]></description>
			<content:encoded><![CDATA[<p>Seeing an error in stackblitz on the example code in this article:</p>
<p>Error in /~/src/app/confirm-dialog/confirm-dialog.component.ts (44:156)<br />
Cannot access &#8216;ConfirmDialogModel&#8217; before initialization</p>
<p>This error occurs randomly, have been unable to determine the cause.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Travis		</title>
		<link>https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-5478</link>

		<dc:creator><![CDATA[Travis]]></dc:creator>
		<pubDate>Tue, 23 Feb 2021 22:04:35 +0000</pubDate>
		<guid isPermaLink="false">https://onthecode.co.uk/?p=933#comment-5478</guid>

					<description><![CDATA[Instead of injecting MatDialog into your component you could create a service that provides the confirmDialog method to create and open the modal and a behavior subject result value that can be subscribed to from your componet.

export class ConfirmDialogService {
 result$ = new BehavoirSubject(false);
 
 constructor(public dialog: MatDialog){}

 confirmDialog(title: string, message:string) {
  ...
  dialogRef.afterClosed().subscribe(res =&#062; this.result$.next(res));
}]]></description>
			<content:encoded><![CDATA[<p>Instead of injecting MatDialog into your component you could create a service that provides the confirmDialog method to create and open the modal and a behavior subject result value that can be subscribed to from your componet.</p>
<p>export class ConfirmDialogService {<br />
 result$ = new BehavoirSubject(false);</p>
<p> constructor(public dialog: MatDialog){}</p>
<p> confirmDialog(title: string, message:string) {<br />
  &#8230;<br />
  dialogRef.afterClosed().subscribe(res =&gt; this.result$.next(res));<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Umut Esen		</title>
		<link>https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-5132</link>

		<dc:creator><![CDATA[Umut Esen]]></dc:creator>
		<pubDate>Wed, 07 Oct 2020 09:19:53 +0000</pubDate>
		<guid isPermaLink="false">https://onthecode.co.uk/?p=933#comment-5132</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-5131&quot;&gt;Swathi&lt;/a&gt;.

Hi there! The `ConfirmDialogModel` class demonstrated in the article can transfer pretty much any kind of content, including complex objects, to the dialog. You can declare new properties in that class and render the contents in the shared dialog html. Depending on the complexity of your events, you may want to consider rendering components in the dialog via routing. Good luck!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-5131">Swathi</a>.</p>
<p>Hi there! The `ConfirmDialogModel` class demonstrated in the article can transfer pretty much any kind of content, including complex objects, to the dialog. You can declare new properties in that class and render the contents in the shared dialog html. Depending on the complexity of your events, you may want to consider rendering components in the dialog via routing. Good luck!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Swathi		</title>
		<link>https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-5131</link>

		<dc:creator><![CDATA[Swathi]]></dc:creator>
		<pubDate>Wed, 07 Oct 2020 03:41:14 +0000</pubDate>
		<guid isPermaLink="false">https://onthecode.co.uk/?p=933#comment-5131</guid>

					<description><![CDATA[Nice article. Keep it up. Just a question - For different events, I don&#039;t want to create different components rather want to have a single component which can have all the dialogs content. How can I achieve this?]]></description>
			<content:encoded><![CDATA[<p>Nice article. Keep it up. Just a question &#8211; For different events, I don&#8217;t want to create different components rather want to have a single component which can have all the dialogs content. How can I achieve this?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ปั้มไลค์		</title>
		<link>https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-4640</link>

		<dc:creator><![CDATA[ปั้มไลค์]]></dc:creator>
		<pubDate>Sun, 05 Jul 2020 12:14:54 +0000</pubDate>
		<guid isPermaLink="false">https://onthecode.co.uk/?p=933#comment-4640</guid>

					<description><![CDATA[Like!! Great article post.Really thank you! Really Cool.]]></description>
			<content:encoded><![CDATA[<p>Like!! Great article post.Really thank you! Really Cool.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Umut Esen		</title>
		<link>https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-1379</link>

		<dc:creator><![CDATA[Umut Esen]]></dc:creator>
		<pubDate>Wed, 19 Feb 2020 23:50:20 +0000</pubDate>
		<guid isPermaLink="false">https://onthecode.co.uk/?p=933#comment-1379</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-1149&quot;&gt;bablu&lt;/a&gt;.

Hi bablu, the component is re-usable in the sense that it can be placed in a shared module and used in any other module. You could also package it up as an npm package to include in different projects.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-1149">bablu</a>.</p>
<p>Hi bablu, the component is re-usable in the sense that it can be placed in a shared module and used in any other module. You could also package it up as an npm package to include in different projects.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: bablu		</title>
		<link>https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-1149</link>

		<dc:creator><![CDATA[bablu]]></dc:creator>
		<pubDate>Mon, 16 Dec 2019 19:52:45 +0000</pubDate>
		<guid isPermaLink="false">https://onthecode.co.uk/?p=933#comment-1149</guid>

					<description><![CDATA[how did you said that this is reusable.]]></description>
			<content:encoded><![CDATA[<p>how did you said that this is reusable.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Michal		</title>
		<link>https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-98</link>

		<dc:creator><![CDATA[Michal]]></dc:creator>
		<pubDate>Fri, 19 Jul 2019 07:36:37 +0000</pubDate>
		<guid isPermaLink="false">https://onthecode.co.uk/?p=933#comment-98</guid>

					<description><![CDATA[Thanks a lot !]]></description>
			<content:encoded><![CDATA[<p>Thanks a lot !</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: gar519		</title>
		<link>https://onthecode.co.uk/blog/create-confirm-dialog-angular-material#comment-51</link>

		<dc:creator><![CDATA[gar519]]></dc:creator>
		<pubDate>Tue, 19 Mar 2019 09:50:46 +0000</pubDate>
		<guid isPermaLink="false">https://onthecode.co.uk/?p=933#comment-51</guid>

					<description><![CDATA[I really needed this. works PERFECTLY!

THANKS]]></description>
			<content:encoded><![CDATA[<p>I really needed this. works PERFECTLY!</p>
<p>THANKS</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
