These are chat archives for angular/material

6th
Jan 2016
sunwenzheng
@TimeIsGoOn
Jan 06 2016 03:19
hello erveryone
meterial have angular 2 ?
soni007soni
@soni007soni
Jan 06 2016 08:24
hi any visual designer for angular material like that of pingendo of bootstrap
Tiago Braga
@tbragaf
Jan 06 2016 11:59
This message was deleted
tonyeung
@tonyeung
Jan 06 2016 17:38
fab speed dial always defaults to open on first load, but will toggle correctly after some other action is done
has anyone else encountered this? I set the md-open to a scope variable which false, but it is still open
tonyeung
@tonyeung
Jan 06 2016 17:44
iknow its something in my code because i can't get a repro running
tonyeung
@tonyeung
Jan 06 2016 18:50
some more information: when the page first loads, its like the control is not active yet, i have to click on the control once before it will auto close by clicking somewhere else on the screen
Florian Knop
@fknop
Jan 06 2016 18:52
@tonyeung Probably because your controller is not instantiated yet
tonyeung
@tonyeung
Jan 06 2016 18:55
you mean when the control is rendered isOpen doesn't have a value so it defaults to open?
tonyeung
@tonyeung
Jan 06 2016 19:35
it looks like the control is stalling for whatever reason
i compared the markup for initial load for mine and in the samples and they're missing stuff like z-index and opacity
Florian Knop
@fknop
Jan 06 2016 19:36
console.log your value at startup, you'll see :)
tonyeung
@tonyeung
Jan 06 2016 19:36
its set to false
i even set it to false on the control itself
i don't think the control/directive finishes loading for w/e reason
Florian Knop
@fknop
Jan 06 2016 19:37
can you paste that ?
tonyeung
@tonyeung
Jan 06 2016 19:37
paste what, the markup?
Florian Knop
@fknop
Jan 06 2016 19:38
yes, your code :)
tonyeung
@tonyeung
Jan 06 2016 19:38
should paste strait in here or do a gist?
Florian Knop
@fknop
Jan 06 2016 19:39
pastebin or whatever :P probably better
Florian Knop
@fknop
Jan 06 2016 19:45
You're setting it to false and it's open ?
tonyeung
@tonyeung
Jan 06 2016 19:46
correct
i found the directive, about to start stepping to see what's going on
i can't replicate it in codepen so its something in my code, but not sure what
huh.. the animation never runs on first load
but it runs the open animation on first click
i wonder what adds the zindex
shiet.. the material site uses minified code for their examples T.T
oh codepen has the full source
Florian Knop
@fknop
Jan 06 2016 19:51
that's weird, we can see that md-is-open is there when you're opening it yourself
tonyeung
@tonyeung
Jan 06 2016 19:52
so the addClass() function is running on load for codepen, but not for me
Florian Knop
@fknop
Jan 06 2016 19:53
(nothing to do with that, but you made a typo: md-ward instead of warn :p)
tonyeung
@tonyeung
Jan 06 2016 19:53
ah, i'll fix that, thanks
i wonder if it has to do with ui router
so when the page loads it knows and sees isOpen as false
tonyeung
@tonyeung
Jan 06 2016 20:01
@fknop i think its ui router
tonyeung
@tonyeung
Jan 06 2016 20:59
addClass() on the directive never gets called
tonyeung
@tonyeung
Jan 06 2016 21:40
@fknop its a known bug: angular/material#6111