Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEMO > search, search is not working #63

Closed
OskHa opened this issue Jan 24, 2016 · 14 comments
Closed

DEMO > search, search is not working #63

OskHa opened this issue Jan 24, 2016 · 14 comments
Assignees
Labels

Comments

@OskHa
Copy link

OskHa commented Jan 24, 2016

just copied everything from the demo and the search is not working.

had to change from {{(filteredItems = (nutritionList | filter: filterName))}}

to {{filteredItems = (nutritionList | filter: filterName)}}

(bracket around filteredItems)

@iamisti iamisti added the bug label Jan 25, 2016
@iamisti iamisti self-assigned this Jan 25, 2016
@iamisti
Copy link
Owner

iamisti commented Jan 25, 2016

Which version exactly do you mean and which version did you use?

@OskHa
Copy link
Author

OskHa commented Jan 25, 2016

"dependencies": {
    "jquery": "~2.1.4",
    "angular-material": "master",
    "components-font-awesome": "master",
    "angular-messages": "~1.4.8",
    "angular-route": "~1.4.8",
    "angular-loader": "~1.4.0",
    "angular-mocks": "~1.4.8",
    "angular-paging": "~2.1.0",
    "ngmap": "~1.16.7",
    "angular-environment": "~1.0.3",
    "mdDataTable": "~1.2.0",
    "underscore": "~1.8.3",
    "lodash": "~3.10.1",
    "angular-aria": "~1.4.9",
    "angular-animate": "~1.4.9"
  }

@OskHa
Copy link
Author

OskHa commented Jan 25, 2016

also check the last comment.
#62

Cheers and have a great day

@iamisti
Copy link
Owner

iamisti commented Jul 21, 2016

Fixed with v1.5.0

@iamisti iamisti closed this as completed Jul 21, 2016
@shriharry
Copy link

shriharry commented Aug 4, 2016

Hi Guys,

Nice plugin, But I am having issue in using 'mdt-row' attribute. I followed this [https://github.com/iamisti/mdDataTable#data-row-attributes] to create table. I always get typeError: _.get is not a function. I followed all steps discussed in issues. But not having any luck. Can you check my attachment if there is anything I am missing?

Cheers and thanks in advance.

I am loading files in following sequence.

2

This is error, which m getting.

1

@OskHa
Copy link
Author

OskHa commented Aug 4, 2016

just put lodash before, md-data-tbale in your scripts.

@shriharry
Copy link

shriharry commented Aug 4, 2016

Yes I changed order but It still throws same error.

This is my order now.

3

I just found that there is already latest bug open on this https://github.com/iamisti/mdDataTable/issues/125

@OskHa
Copy link
Author

OskHa commented Aug 4, 2016

Well i would suggest you to use a bild script that creates a vendor.js. Easiest is elixir from laravel, write your own gulp or check the webpack.

Loading scripts the way ur trying isnt the best way.

@shriharry
Copy link

I am using this angular-1 framework. In our project all dependencies are included in index.html page like this and not in vendor.js. If I would have used angular-2, I could have tried to installed scripts in the way you told using composer build script.

@iamisti
Copy link
Owner

iamisti commented Aug 4, 2016

It should work with lodash included. Can you please make sure the webpage really loads lodash? (development tab in chrome -> sources)

@shriharry
Copy link

sorry for pain guys, but I just noticed that my loadash version is not latest. I included latest version, And it just resolved problem. Thank you so much.

Cheers and these are following sequences of files both of them just worked fine for me

4

and this one too

5

@iamisti
Copy link
Owner

iamisti commented Aug 4, 2016

I'm glad we could help!

@shriharry
Copy link

Sorry, to bother you again.

I am unable to apply custom filter on mdt-rows attribute data field. I am applying it in this way.

 <mdt-table mdt-row="{'data': nutritionList  | myfilter:date1:date2,
                      'table-row-id-key': 'id',
                      'column-keys': ['id', 'name']}">

Is it right way to do this?

bcoz using ng-repeate attribute I was doing it in this way and it was working perfectly.

<mdt-row ng-repeat="feed in nutritionList | myfilter:date1:date2">

Will appreciate your help on this. Thanks.

@iamisti
Copy link
Owner

iamisti commented Oct 19, 2016

Hi @shriharry , I'd try to do it on the controller level with $filter service if didn't work for some reason.
But then maybe the better solution would be to use mdt-row-paginator and then you can filter and manipulate your data in one of your method in your controller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants