These are chat archives for angular/material

4th
Jan 2017
okcxl3
@okcxl3
Jan 04 2017 00:06
does anyone know how to upload file with HTTP post?
BiancaPiper
@MissLouisePiper
Jan 04 2017 00:49
hi everyone. is there someone who knows or expert in Laravel framework? can you refer to me someone who is really good at this framework. I badly needed help. i hope you can help me. Thank you
Roel
@roelzkie15
Jan 04 2017 07:30
It is possible to do sorting in md-list?
Frederik Prijck
@frederikprijck
Jan 04 2017 08:32
@badcoder28 What about the orderby filter ?
Roel
@roelzkie15
Jan 04 2017 08:38

@frederikprijck hi im going to put it in a button or ng-click is there anyway how to do that?

ng-repeat="cattle in filtered = ( cattles | toArray | orderBy:'name'

Frederik Prijck
@frederikprijck
Jan 04 2017 08:41
So you want to filter the list based on clicking a button ?
Roel
@roelzkie15
Jan 04 2017 08:41
yes exactly sir!
Roel
@roelzkie15
Jan 04 2017 08:42
Not filter but sort sir
Frederik Prijck
@frederikprijck
Jan 04 2017 08:42
Sort is a filter.
Roel
@roelzkie15
Jan 04 2017 08:42
ok2 thanks a lot!
Frederik Prijck
@frederikprijck
Jan 04 2017 08:42
Filter is a filter. So There is the Sort Filter and the Filter Filter.
Makes no sense, I know. :D
Roel
@roelzkie15
Jan 04 2017 08:42
oh yeah haha
Frederik Prijck
@frederikprijck
Jan 04 2017 08:45
@badcoder28 What you need to do basicly is have a button which set a variable on click. This variable is used in the sort function to define how to sort the list.
Something like this:
$scope.toggleSorting = function() {
  $scope.orderBy = ! $scope.orderBy;
};
$scope.sortFunction = function() {
    if ( $scope.orderBy) {
        return '-creationDate';
    }
    else {
        return 'creationDate';
    }
}
Roel
@roelzkie15
Jan 04 2017 09:23
@frederikprijck im trying this one looks helpful and are you csbarnes?
Roel
@roelzkie15
Jan 04 2017 09:42
thanks a lot man very helpful
Frederik Prijck
@frederikprijck
Jan 04 2017 09:54
@badcoder28 What is csbarnes ?
Roel
@roelzkie15
Jan 04 2017 09:55
i thought you are the one who answered in your link in stackoverflow, csbarnes is a user
Frederik Prijck
@frederikprijck
Jan 04 2017 10:02
Nop :)
C. Schott
@oddskill
Jan 04 2017 16:54
hi noob here i setup a project with angular cli and installed material 2 and theme now in my angular component how do i import ie a md-input, do i simply use import {MdInput} from '@angular/material';
C. Schott
@oddskill
Jan 04 2017 17:00
followed the meterial 2 get started guide that far
C. Schott
@oddskill
Jan 04 2017 17:07
never mind, figured it out
Todd H
@dolthead
Jan 04 2017 23:09
Is there a way to make an md-button raised by default in my app (without adding class='md-raised')?