These are chat archives for angular/material

23rd
Nov 2015
Tim
@4tron
Nov 23 2015 04:53
@shprink very nice!!
sunny
@sunnynegi
Nov 23 2015 05:42
Gm :)
Hello guys, how can I hide and show the dialog box, without loading his controller
Tim
@4tron
Nov 23 2015 05:56
why would not load the controller?
sunny
@sunnynegi
Nov 23 2015 05:57
because it's reinitialise the whole controller
i want to make a minimize function for it
so he hide and show.
This message was deleted
Tim
@4tron
Nov 23 2015 06:00
minmize?
sunny
@sunnynegi
Nov 23 2015 06:00
yup
This message was deleted
Tim
@4tron
Nov 23 2015 06:03
interesting ... im not actually sure what you are trying to achieve but you can bind the current controller with the $mdDialog.options({controller = YOURCONTROLLER})
sunny
@sunnynegi
Nov 23 2015 06:03
open the custom dialog there is a cross button click on it's hide the md dialog box now my question is how can i show the same dialog box wihout loading his controller
simple :smile:
@4tron
Tim
@4tron
Nov 23 2015 06:06
loading "his" controller?? are you copy and pasting the code?
sunny
@sunnynegi
Nov 23 2015 06:06
nope
Tim
@4tron
Nov 23 2015 06:07
you mean the content inside the dialog?
sunny
@sunnynegi
Nov 23 2015 06:07
yes
Tim
@4tron
Nov 23 2015 06:07
you need to create you own .html in the file system and replace templateUrl: 'dialog1.tmpl.html',
from the $mdDialog.show()
sunny
@sunnynegi
Nov 23 2015 06:08
let me try
Tim
@4tron
Nov 23 2015 06:08
line 42 in the codepen
sunny
@sunnynegi
Nov 23 2015 06:10
not work
Tim
@4tron
Nov 23 2015 06:11
huh
whats the error .. or is it just not showing anything?
sunny
@sunnynegi
Nov 23 2015 06:11
showing nothing?
Tim
@4tron
Nov 23 2015 06:13
the link need to be relative to the root of your index.html or whatever html has the main ng-app. But ... you can also just replace the content from line 23 in the html of that codepen the <script type="text/ng-template"> . that is currently where the content is coming from in that codepen
sunny
@sunnynegi
Nov 23 2015 06:16
ok
but i want to make simple minimize functionality with md-dialog box so user can show and hide while working.
Tim
@4tron
Nov 23 2015 06:19
So you kinda want it to float over the content as a little flat box in the corner as the users navigates around the site? ... still not quite sure what you are looking to achieve
sunny
@sunnynegi
Nov 23 2015 06:20
i know what to achieve @4tron
as you mention in your above comment that
" you kinda want it to float over the content as a little flat box in the corner as the users navigates around the site" that's i want
Tim
@4tron
Nov 23 2015 06:26
you would probably want to package all the functionality as a module .. you might need a custom directive to inject on the main index.html .. im not sure sorry
sunny
@sunnynegi
Nov 23 2015 06:26
np
but thanks for help
Tim
@4tron
Nov 23 2015 06:27
hope you get it
working
sunny
@sunnynegi
Nov 23 2015 06:27
This message was deleted
Sudhir
@rihdus
Nov 23 2015 06:32
Been following @sunnynegi messages for aa while and from what I understand, the functionality is similar to how windows work in a desktop platform.
User may minimise /hide it and layer bring it back up..
sunny
@sunnynegi
Nov 23 2015 06:36
absolutely right ?
Sudhir
@rihdus
Nov 23 2015 06:36
And it seems md-dialog doesn't offer this out of the box.. I would suggest creating a wrapper service which provides minimize and maximize functionality..
However there is not need bother with the dialog controller.. U may still let it run each time the dialog is shown/maximized.
sunny
@sunnynegi
Nov 23 2015 06:37
ok
This message was deleted
Felix Becker
@felixfbecker
Nov 23 2015 11:13
I think there should be more tips in the docs on how to switch from other popular frameworks like Bootstrap. For example, how do you make a responsive container like bootstrap with the flex directives. Or, what about data tables (which are in the material specs, but ngMaterial docs have no word about them).
Todd Werelius
@Todd-Werelius
Nov 23 2015 16:35
@felixbecker there are a number of features and components that are not yet implemented, they are moving at a pretty rapid pace, but some of the components, data tables are not likely to be in release 1.0 which they are closing in on, but will be tasked for 2.0 instead. The MD spec has been added to quite a bit since they started the project