Totati

Results 29 comments of Totati

I've had a similar question at [stackoverflow]( https://stackoverflow.com/questions/48899593/angular-material-switch-between-mat-icon-button-and-mat-button), but nobody had a better idea... I understand why it can't be done, but it's sad I have to make 2 buttons...

I've drag&dropped the `.cdk-overlay-container` into the dialog, it seems to fix the issue :D ![image](https://user-images.githubusercontent.com/17689719/195571793-a01b5b5f-6e6b-4c2b-819a-78e5ff8638c3.png) I hardly believe it's a decent solution, hovever could the `dialog` element provide an Overlay...

We ran into a problem when the modal won't use the injector passed with the options: https://stackblitz.com/edit/angular-okpvwl-iiswxz?file=src%2Fapp%2Flazy.module.ts

You should not use `.bind(this)` in template, as it returns a new function every time change detection runs. You should use arrow function as @athisun said, or store the binded...

It's not a problem with the typeahead, it's how angular works. You still return a new function (row 40) every time change detection runs. You should only use functions in...

> PS: seems like you didn't save your edits to the stackblitz? Fixed the link. > Or another question that I already asked and still can't answer: is it possible...

> It would get the initial parameterized function, which is enough. Use a pipe then. > Hmmn to supply arrow functions to directives? Or parameterized arrow functions i guess? Neither....

![Screenshot_20221124-084606](https://user-images.githubusercontent.com/17689719/203723365-0c93a3e3-98a6-43fc-ab4f-0640b9c05795.png) This is how it looks.

> And please don't treat `null` and `undefined` as the same thing. It's not. You could potentially treat `undefined` as a reset option, but `null` is definitely not some magical...

It is possible for all the date adapters but the native. Use one of those and set the `dateInput` of the `parse` property to a string array. https://material.angular.io/components/datepicker/overview#momentjs-formats @andrewseguin