{"id":19368383,"url":"https://github.com/billcheng/angular-search-text","last_synced_at":"2025-07-18T10:08:54.324Z","repository":{"id":58217822,"uuid":"54450241","full_name":"billcheng/angular-search-text","owner":"billcheng","description":"Angular Search Text Box for Materialize","archived":false,"fork":false,"pushed_at":"2016-03-26T05:15:19.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T23:05:05.283Z","etag":null,"topics":["angularjs","materialize-css"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/billcheng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-22T06:15:55.000Z","updated_at":"2017-11-26T04:50:56.000Z","dependencies_parsed_at":"2022-08-31T00:31:02.092Z","dependency_job_id":null,"html_url":"https://github.com/billcheng/angular-search-text","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billcheng%2Fangular-search-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billcheng%2Fangular-search-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billcheng%2Fangular-search-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billcheng%2Fangular-search-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/billcheng","download_url":"https://codeload.github.com/billcheng/angular-search-text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240491816,"owners_count":19809977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angularjs","materialize-css"],"created_at":"2024-11-10T08:06:17.177Z","updated_at":"2025-02-24T13:42:48.148Z","avatar_url":"https://github.com/billcheng.png","language":"HTML","readme":"# angular-search-text\nAngular Search Text Box for Materialize\n\n\u003ca href=\"http://plnkr.co/edit/BSBsHpTzWpjv8QUvnBJG?p=preview\"\u003eDEMO\u003c/a\u003e\n\n# Install\n```code\nbower install angular-search-text\n```\n\n# CSS\n```html\n\u003clink rel=\"stylesheet\" href=\"angular-search-text.css\" /\u003e\n```\n\n# Script\n```html\n\u003cscript type=\"javascript\" src=\"angular-search-text.js\"\u003e\u003c/script\u003e\n```\n\n# Angular module\n```javascript\nangular.module(\"yourApp\", [\"ngSearchText\"])\n```\n\n# HTML Tag\n```html\n\u003csearch-text ng-model=\"model\" \n      ng-request=\"request(deferred, text)\" \n      ng-disabled=\"false\" \n      placeholder=\"search text...\" \u003e\n\u003c/search-text\u003e\n```\n\n# Example of ng-request function (local)\n```javascript\n$scope.doSearch = function(deferred, text) {\n    var result = [];\n    if (text!=='')\n        var lowerCaseText = text.toLowerCase();\n        angular.forEach(searchList, function(s){\n            if (s.toLowerCase().startsWith(lowerCaseText))\n                result.push(s);\n        });\n                    \n    deferred.resolve({data: result});\n  };\n```\n\n# Example of ng-request function (remote)\n```javascript\n$scope.doSearch = function(deferred, text) {\n    $http.get(\"webapi\")\n      .then(function(response){\n            deferred.resolve({data: response.data});\n          },\n          function(response){\n            deferred.reject(response);\n          });\n  };\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillcheng%2Fangular-search-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbillcheng%2Fangular-search-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillcheng%2Fangular-search-text/lists"}