{"id":15371532,"url":"https://github.com/nathanwalker/nativescript-ng2-vscode-snippets","last_synced_at":"2025-04-14T08:13:04.560Z","repository":{"id":50737200,"uuid":"57355404","full_name":"NathanWalker/nativescript-ng2-vscode-snippets","owner":"NathanWalker","description":"Snippets for NativeScript + Angular 2 Development.","archived":false,"fork":false,"pushed_at":"2020-08-28T03:46:58.000Z","size":23,"stargazers_count":14,"open_issues_count":4,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T08:12:39.696Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NathanWalker.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-04-29T04:49:57.000Z","updated_at":"2018-06-03T01:43:18.000Z","dependencies_parsed_at":"2022-09-16T20:11:06.665Z","dependency_job_id":null,"html_url":"https://github.com/NathanWalker/nativescript-ng2-vscode-snippets","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/NathanWalker%2Fnativescript-ng2-vscode-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NathanWalker%2Fnativescript-ng2-vscode-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NathanWalker%2Fnativescript-ng2-vscode-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NathanWalker%2Fnativescript-ng2-vscode-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NathanWalker","download_url":"https://codeload.github.com/NathanWalker/nativescript-ng2-vscode-snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248843912,"owners_count":21170495,"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-01T13:47:26.129Z","updated_at":"2025-04-14T08:13:04.538Z","avatar_url":"https://github.com/NathanWalker.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## NativeScript + Angular Snippets for Visual Studio Code ##\n\nNow compatible with Angular 4.x and above.\n\nThis JSON file contains snippets for all NativeScript UI components and some frequently used attributes specifically for use with [nativescript-angular](https://github.com/NativeScript/nativescript-angular).\n\nAll UI components are prefixed with ```ns```. Attributes do not have a prefix.\n\n![Preview](https://cdn.filestackcontent.com/IcTER9raRgCi8nCQeOZu?v=0)\n\n###UI Components\n\n#### From within TypeScript `Component` Files:\n\n- Component with inline template - ```nscomponent_template```\n- Component with templateUrl - ```nscomponent_templateUrl```\n\nThe following can be used inside both TypeScript and HTML view files:\n\n#### Layouts\n- Absolute Layout - ```nsabsolute```\n- Dock Layout - ```nsdock```\n- Flexbox Layout - ```nsflexbox```\n- Grid Layout - ```nsgrid```\n- Stack Layout - ```nsstack```\n- Wrap Layout - ```nswrap```\n\n### Widgets\n- Action Bar - ```nsactionbar```\n- Action Bar with Back Button - ```nsactionbarback```\n- Label - ```nslabel```\n- Text Field - ```nstextfield```\n- Secure Text Field (for passwords) - ```nspassword```\n- Text View - ```nstextview```\n- Image - ```nsimg```\n- Border - ```nsborder```\n- Button - ```nsbtn```\n- Search Bar - ```nssearchbar```\n- Switch - ```nsswitch```\n- Slider - ```nsslider```\n- Progress - ```nsprogress```\n- Activity Indicator - ```nsloading```\n- Date Picker - ```nsdate```\n- Time Picker - ```nstime```\n- List Picker - ```nslistpicker```\n- Segmented Bar - ```nssegmentedbar```\n- Tab View - ```nstabview```\n- List View - ```nslistview```\n- Web View - ```nswebview```\n\n###Attributes\n- cssClass - ```css```\n- text - ```text```\n- icon - ```icon```\n- tap - ```tap```\n- textWrap - ```wrap```\n- horizontalAlignment - ```halign```\n- verticalAlignment - ```valign```\n- visibility - ```visibility```\n- stretch - ```stretch```\n- keyboardType - ```kbtype```\n- colSpan - ```colspan```\n- rowSpan - ```rowspan```\n- row - ```row```\n- col - ```col```\n- width - ```width```\n- height - ```height```\n\n## How to use? ##\n\n1. Inside Visual Studio Code press\n   ```bash\n   CTRL + P\n   ```\n   \n2. Type the following in the console window\n  ``` bash\n  ext install nativescript-ng2-snippets\n  ```\n3. Hit enter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanwalker%2Fnativescript-ng2-vscode-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanwalker%2Fnativescript-ng2-vscode-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanwalker%2Fnativescript-ng2-vscode-snippets/lists"}