Comments (2)
This is a little difficult to conceive, since it's hard to tell if the <ng-template>
is used or not. It might be in the projected content of another component, where it could be queried by the name foo
or simply TemplateRef
. The compiler could theoretically know which content would be projected and thus subject to querying, but that's getting very nuanced. I think this is a good candidate for a lint error.
from angular.
I thought it was possible, as my intellij IDEA grays out unused templates:
But I admit it's not 100% accurate.
I didn't even know that child components could yoink templates from projected content. That of course complicates this inspection. Will see if I suggest this at angular-eslint instead.
from angular.
Related Issues (20)
- Ability to disable "NG3: The containing function or module body is too large for control flow analysis. [plugin angular-compiler]" rule HOT 6
- Failed to implement CSP Policy's for styles with CSP_NONCE token HOT 5
- Animation in not active material mat-tab makes animated element get stuck in the DOM
- Error Application start, functional guard injection in the app_routes_config HOT 9
- Provide typesafety for ComponentRef.setInput HOT 2
- Paste output is not triggered when input is not empty (at least in Firefox) HOT 7
- Can we exclude specific routes for useHash routing? HOT 1
- docs(aot): Type Narrowing Code Sample is Duplicated HOT 2
- `ModelSignal.asReadonly()` returns value instead of readonly signal HOT 1
- Twitter name Changing HOT 2
- Copy button of code example on angular.dev blocks the code HOT 3
- Using Self-Closing Tags on root-element (app-root) breaks SSR HOT 2
- Angular 13 to 14 migration issue running widgets HOT 3
- input's initialValue value ignored with withComponentInputBinding() HOT 2
- addEventListener with AbortSignal option can cause memory leaks HOT 1
- API reference list link missing. HOT 2
- The sentence on the document confuses me HOT 2
- TypeScript Infinity and NaN errors HOT 2
- provideClientHydration() shouldn't cache HttpClient GET requests with "Authorization" header HOT 2
- @Input({ required: true }) - Required inputs do not throw errors at build time HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular.