These are chat archives for angular/material

30th
Jul 2015
sunny
@sunnynegi
Jul 30 2015 12:29
How can i use the Tabs with external view content in angular js material
In material site there is no description
Ed Pelc
@epelc
Jul 30 2015 12:32
You have to use the selected tab id
sunny
@sunnynegi
Jul 30 2015 12:33
is there any example ?
Ed Pelc
@epelc
Jul 30 2015 12:34
Then use an ng-switch with the id to show/hide your views
sunny
@sunnynegi
Jul 30 2015 12:35
wait i am trying
sunny
@sunnynegi
Jul 30 2015 12:42
not work for me
any other idea
epelc
Gaurav Saini
@gauravsaini03
Jul 30 2015 12:44
@sunnynegi Rather you can make a codepen and share how you are sdoing then everyone here can help
Ed Pelc
@epelc
Jul 30 2015 12:45
I'll be on a computer soon to help if you have a codepen ready
Gaurav Saini
@gauravsaini03
Jul 30 2015 12:46
Great, @sunnynegi you are lucky. Just get the codepen ready soon :)
Alex Cruz
@peduxe
Jul 30 2015 17:27
ey all, is anyone there using the following workflow:
gulp and browserify?
I've got extremely long bundling times for angular and angular-material
currently looking for a way to optimize it
Patrick Finkbeiner
@pfinkbeiner
Jul 30 2015 17:29
How long does it take?
Alex Cruz
@peduxe
Jul 30 2015 17:30
about 12s
it watches for changes, bundles all files from a src folder, writes to dest folder
then restarts browser sync
Patrick Finkbeiner
@pfinkbeiner
Jul 30 2015 17:33
Hm, I am using browserify’s watchify to bundle all files and it take just 2.8 initially and then just about 0.36 seconds.
Alex Cruz
@peduxe
Jul 30 2015 17:34
ehm do you mind sharing the recipe? :D
Patrick Finkbeiner
@pfinkbeiner
Jul 30 2015 17:35
It’s nothing spectacular… watchify -v -t coffeeify --extension='.coffee' -d ./app/index.coffee -o ./app.js
Alex Cruz
@peduxe
Jul 30 2015 17:37
oh ey, in actual code :D
I throw in babelify as well
Patrick Finkbeiner
@pfinkbeiner
Jul 30 2015 17:37
But maybe your project is way bigger than mine… I currently have 2200 lines of code all written in coffeescript
Alex Cruz
@peduxe
Jul 30 2015 17:38
nope my project is small
I was toying now with es6 and angular, decided to give angular material a shout
it's really small really, ~400 lines
Patrick Finkbeiner
@pfinkbeiner
Jul 30 2015 17:39
And you already figured out that the build process take that much time because of material?
Alex Cruz
@peduxe
Jul 30 2015 17:39
but since the beginning i've been having slow bundle times
hm, I will test that
Patrick Finkbeiner
@pfinkbeiner
Jul 30 2015 17:40
Gulp is triggering your browserify?
Alex Cruz
@peduxe
Jul 30 2015 17:40
yes
Patrick Finkbeiner
@pfinkbeiner
Jul 30 2015 17:40
Well, than you may have better times using watchify instead of gulp
Alex Cruz
@peduxe
Jul 30 2015 17:41
oh yes
it was angular material
I guess I will just import it in the html file
Patrick Finkbeiner
@pfinkbeiner
Jul 30 2015 17:41
:thumbsup:
from ~160 to ~60
angular material is a monster