Comments (2)
The phrasing probably isn't great but undefined
has a specific behavior.
<div [class.foo]="true" [class.foo]="false"></div>
will result in an empty class
attribute on the div
where [class.foo]="true" [class.foo]="undefined"
will result in class="foo"
.
from angular.
Note also that this seems silly when all of the bindings are in one place, but this also affects the behavior when multiple bindings to the same class exist across different directives on an element.
from angular.
Related Issues (20)
- adev: Local packages not linked properly for development HOT 3
- Signal computed not refreshed HOT 1
- Using viewChild/viewChildren with private property should be an error HOT 2
- Router links in `@defer` blocks not having correct relative route HOT 5
- Calling `ComponentFixture#detectChanges()` or `autoDetectChanges()` should re-trigger change detection after flushing effects HOT 2
- zone.js breaks on iOS 16 , starting at v0.13.0 HOT 1
- Add a unique identifier to a component's style
- queryParamsHandling is not working as expected
- Working with Normal routes and child routes together HOT 1
- Dynamically generated content is not projected
- FormControl.markAsTouched does not work with OnPush Change Detection HOT 2
- example puicture not online
- Style binding doesn't account for -webkit prefixes
- Need Simplified Explanation | Services and Dependency Injection | Explanation HOT 2
- Projected content is not hidden when dynamically creating a component if there is nowhere to project the content yet HOT 2
- `ControlValueAccessor` missing `registerOnDisabledStateChanged` method HOT 1
- Angular 17 SSR does not correctly generate static pages when paired with Firebase HOT 1
- adev is broken on Firefox after xtermjs is loaded and table of contents item clicked HOT 1
- Recursive loadChildren fails in 17, but worked in 16 HOT 5
- Signals nullability checks horribly broken 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.