ionic-filter-bar | Filter Bar plugin for the Ionic Framework | Plugin library
kandi X-RAY | ionic-filter-bar Summary
kandi X-RAY | ionic-filter-bar Summary
A platform specific search filter plugin for the Ionic Framework (iOS / Android).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ionic-filter-bar
ionic-filter-bar Key Features
ionic-filter-bar Examples and Code Snippets
Community Discussions
Trending Discussions on ionic-filter-bar
QUESTION
In Angular 1, there is filter attribute along with ng-repeat
as mentioned here.
But in Angular 2 there is new functionality named "pipe". I have used pipes already but still I can't search through all properties like in the Angular 1 version.
However it is working fine for any 1 property, but for whole array, it's not working.
I got following error when i search something.
ERROR TypeError: Cannot read property 'includes' of null at http://localhost:8100/build/main.js:118751:76 at Array.some (native) at http://localhost:8100/build/main.js:118751:42 at Array.filter (native) at FilterPipe.transform (http://localhost:8100/build/main.js:118750:26) at checkAndUpdatePureExpressionInline (http://localhost:8100/build/main.js:11519:38) at checkAndUpdateNodeInline (http://localhost:8100/build/main.js:12374:17) at checkAndUpdateNode (http://localhost:8100/build/main.js:12336:16) at debugCheckAndUpdateNode (http://localhost:8100/build/main.js:12965:59) at debugCheckDirectivesFn (http://localhost:8100/build/main.js:12906:13) at Object.eval [as updateDirectives] (ng:///AppModule/Orders.ngfactory.js:628:46) at Object.debugUpdateDirectives [as updateDirectives] (http://localhost:8100/build/main.js:12891:21) at checkAndUpdateView (http://localhost:8100/build/main.js:12303:14) at callViewAction (http://localhost:8100/build/main.js:12618:17) at execComponentViewsAction (http://localhost:8100/build/main.js:12564:13)
ERROR CONTEXT DebugContext_ {view: Object, nodeIndex: 43, nodeDef: Object, elDef: Object, elView: Object}component: (...)componentRenderElement: (...)context: (...)elDef: ObjectbindingFlags: 2bindingIndex: 6bindings: Array(1)childCount: 1childFlags: 73728childMatchedQueries: 0directChildFlags: 73728element: Objectflags: 1index: 42matchedQueries: ObjectmatchedQueryIds: 0ngContent: nullngContentIndex: 0outputIndex: 3outputs: Array(0)parent: Objectprovider: nullquery: nullreferences: ObjectrenderParent: Objecttext: null__proto__: ObjectelOrCompView: (...)elView: Objectinjector: (...)nodeDef: ObjectnodeIndex: 43providerTokens: (...)references: (...)renderNode: (...)view: Object__proto__: Object
Below is my code for reference:
1) FilterPipe.ts
...ANSWER
Answered 2017-Apr-08 at 17:36Thanks JB Nizet for an answer.
Below is my working updated code.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ionic-filter-bar
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page