{"id":17458146,"url":"https://github.com/pocesar/angular-cleanmask","last_synced_at":"2025-04-02T21:29:55.287Z","repository":{"id":15803493,"uuid":"18542979","full_name":"pocesar/angular-cleanmask","owner":"pocesar","description":"Angular helper directive to use the $viewValue of a ui-mask","archived":false,"fork":false,"pushed_at":"2014-09-20T09:14:28.000Z","size":172,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-18T06:28:33.378Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pocesar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-08T02:54:37.000Z","updated_at":"2015-11-02T20:16:08.000Z","dependencies_parsed_at":"2022-09-15T12:40:39.454Z","dependency_job_id":null,"html_url":"https://github.com/pocesar/angular-cleanmask","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fangular-cleanmask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fangular-cleanmask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fangular-cleanmask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fangular-cleanmask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pocesar","download_url":"https://codeload.github.com/pocesar/angular-cleanmask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246895502,"owners_count":20851281,"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":[],"created_at":"2024-10-18T03:55:27.548Z","updated_at":"2025-04-02T21:29:55.243Z","avatar_url":"https://github.com/pocesar.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"AngularJS clean mask directive\n=================\n\nAngular helper directive to use the $viewValue of a ui-mask\n\n## Why?\n\nWhen you use `ui-mask` directive, you end up with a model with only numbers (for example). \nYou lose the format and everything, which is why you use `ui-mask` in the first place.\n\n```html\n\u003cinput ui-mask=\"(99) 9999-9999?9\" ng-model=\"doh\"\u003e \u003c!-- input is now (12) 3456-1234_ --\u003e\n```\n\nYou end up with:\n\n```js\n$scope.doh === '1234561234'\n```\n\nNot pretty.\n\n## Usage\n\n```js\nangular.module('yourapp', ['ngCleanMask']);\n```\n\n```html\n\u003cinput clean-view-value ui-mask=\"(99) 9999-9999?9\" ng-model=\"yup\"\u003e \u003c!-- input is now (12) 3456-1234_ --\u003e\n```\n\n```js\n$scope.yup === '(12) 3456-1234' // model is correct now!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Fangular-cleanmask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpocesar%2Fangular-cleanmask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Fangular-cleanmask/lists"}