refactor(compiler): Support ngProjectAs attributes (#51544)

Content project allows the content to specify its own selector for matching against content projection slots, using the `ngProjectAs` special attribute. We can now treat this attribue specially, and generate the appropriate flag in the consts array, followed by the parsed CSS selector.

PR Close #51544
This commit is contained in:
Dylan Hunn
2023-08-28 21:17:54 -07:00
committed by Pawel Kozlowski
parent 7f4f1da121
commit 40f2b2690a
2 changed files with 26 additions and 12 deletions
@@ -99,8 +99,7 @@
"ng_project_as_selector.js"
]
}
],
"skipForTemplatePipeline": true
]
},
{
"description": "should take the first selector if multiple values are passed into ngProjectAs",
@@ -114,8 +113,7 @@
"ng_project_as_compound_selector.js"
]
}
],
"skipForTemplatePipeline": true
]
},
{
"description": "should include parsed ngProjectAs selectors into template attrs",
@@ -129,8 +127,7 @@
"ng_project_as_attribute.js"
]
}
],
"skipForTemplatePipeline": true
]
},
{
"description": "should capture the node name of ng-content with a structural directive",