Month:May 2018
Angular 2/3/4/5: change detection on data-bound array push/unshift, pop/shift or splice
Suppose you have a component and have bound an array variable to an input property, like so:
<myComponent [arrayInput]="myArray"></myComponent>
Suppose you were to modify the contents of myArray via its standard array methods such as push(x), pop(), unshift(x), shift(), or splice(i, c). You may notice that myComponent does n… Read more
Solr 7: match exactly one TextField, fuzzy search the others
Disclaimer: I just recently started tinkering with Solr, so this may not be the “textbook” solution to this problem — but it works!
Say you wish to categorize your documents in a hierarchy. For example, you want to have a pet search engine, and you want to bucket the pets accordingly:
… Read moreDog (mammal)
Dogs are domesticated mammals, not natural w
How to replace the default search icon with a custom Ionicon in an Ionic 3 Searchbar
The icon for the Ionic 3 Searchbar is a hard-coded SVG written in SCSS rules. In particular, they are saved under the following variables:
$searchbar-ios-input-search-icon-svg: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'> <path fill='fg-color' d='M5,1c2.2,0,4,1.8,4,4S7.2,9,5,9S1,7.2,1,5S2.8,1,5,1 M5,0C… Read more