Skip to content

Commit c9cfde0

Browse files
committedFeb 24, 2019
Adding Container snippets
1 parent 6928aea commit c9cfde0

File tree

6 files changed

+49
-21
lines changed

6 files changed

+49
-21
lines changed
 

‎CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Angular BeastCode Changelog
22

33
## 7.2.0
4+
* Testing Snippets
5+
* ng-template
6+
* ng-container
7+
* ng-container-ngfor
8+
* ng-container-template
9+
* ng-container-component
410
* Enhanced
511
* t-pipe
612

‎README.md

+5
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ You don't need to type any dashes: "ngrxr" -> "ng-rx-reducer" snippet
204204
| ng-component-inline | Component with inline Template and Styles |
205205
| ng-component-value-accessor | Angular Component With NG_VALUE_ACCESSOR |
206206
| ng-conf | The World's Original Angular Conference |
207+
| ng-container | Angular Container |
208+
| ng-container-component | Angular Container with *ngContainerOutlet |
209+
| ng-container-ngfor | Angular Container with *ngFor |
210+
| ng-container-template | Angular Container with *ngTemplateOutlet |
207211
| ng-controller | Use component instead. |
208212
| ng-debug | pre obj pipe json |
209213
| ng-debug-async | pre obj pipe async pipe json |
@@ -274,6 +278,7 @@ You don't need to type any dashes: "ngrxr" -> "ng-rx-reducer" snippet
274278
| ng-src | Usage: Bind to the src property. |
275279
| ng-style | CSS style |
276280
| ng-switch | Switch template |
281+
| ng-template | Angular template |
277282
| ng-validator | Angular validator snippet |
278283
| ngrx-action-const | ngRx Single action |
279284
| ngrx-action-creator | ngRx Single action with const |

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Angular-BeastCode",
33
"publisher": "Mikael",
44
"displayName": "Angular 7 Snippets - TypeScript, Html, Angular Material, ngRx, RxJS & Flex Layout",
5-
"description": "232 Angular Snippets (TypeScript, Html, Angular Material, Flex Layout, ngRx, RxJS, PWA & Testing) Updated for v8 Beta",
5+
"description": "237 Angular Snippets (TypeScript, Html, Angular Material, Flex Layout, ngRx, RxJS, PWA & Testing) Updated for v8 Beta",
66
"icon": "images/Angular4.png",
77
"license": "MIT",
88
"repository": {

‎snippets/html.json

+1-1
Large diffs are not rendered by default.

‎snippets/typescript.json

+1-1
Large diffs are not rendered by default.

‎src/snippets.json

+35-18
Original file line numberDiff line numberDiff line change
@@ -927,35 +927,52 @@
927927
]
928928
},
929929
"Angular Container": {
930-
"scope": "html",
931-
"prefix": "ng-container",
932-
"body": "<ng-container>${1}</ng-container>"
930+
"types": "typescript, html",
931+
"prefix": "ng-container",
932+
"description": "Angular Container",
933+
"body": [
934+
"<ng-container>${1}</ng-container>",
935+
"$0"
936+
]
933937
},
934938
"Angular Container with *ngFor": {
935-
"scope": "html",
936-
"prefix": "ng-container-ngfor",
939+
"types": "typescript, html",
940+
"prefix": "ng-container-ngfor",
941+
"description": "Angular Container with *ngFor",
937942
"body": [
938943
"<ng-container *ngFor=\"let ${1:item} of ${2:items}\">",
939944
" ${3:content}",
940-
"</ng-container>"
941-
]
945+
"</ng-container>",
946+
"$0"
947+
]
942948
},
943949
"Angular Container with *ngTemplateOutlet": {
944-
"scope": "html",
945-
"prefix": "ng-container-template",
946-
"body": "<ng-container *ngTemplateOutlet=\"${1}\"></ng-container>"
950+
"types": "typescript, html",
951+
"prefix": "ng-container-template",
952+
"description": "Angular Container with *ngTemplateOutlet",
953+
"body": [
954+
"<ng-container *ngTemplateOutlet=\"${1}\"></ng-container>",
955+
"$0"
956+
]
947957
},
948958
"Angular Container with *ngContainerOutlet": {
949-
"scope": "html",
950-
"prefix": "ng-container-component",
951-
"body": "<ng-container *ngComponentOutlet=\"${1}\"></ng-container>"
959+
"types": "typescript, html",
960+
"prefix": "ng-container-component",
961+
"description": "Angular Container with *ngContainerOutlet",
962+
"body": [
963+
"<ng-container *ngComponentOutlet=\"${1}\"></ng-container>",
964+
"$0"
965+
]
952966
},
953967
"Angular template": {
954-
"scope": "html",
955-
"prefix": "ng-template",
956-
"body": "<ng-template #${1:name}></ng-template>"
957-
}
958-
968+
"types": "typescript, html",
969+
"prefix": "ng-template",
970+
"description": "Angular template",
971+
"body": [
972+
"<ng-template #${1:name}></ng-template>",
973+
"$0"
974+
]
975+
},
959976
"Angular ngRx Util": {
960977
"prefix": "ngrx-util",
961978
"description": "ngRx Util",

0 commit comments

Comments
 (0)
Please sign in to comment.