MCPcopy Create free account
hub / github.com/angular/angular / isStylingValuePresent

Function isStylingValuePresent

packages/core/src/render3/instructions/styling.ts:1012–1018  ·  view source on GitHub ↗

* Determines if the binding value should be used (or if the value is 'undefined' and hence priority * resolution should be used.) * * @param value Binding style value.

(value: any)

Source from the content-addressed store, hash-verified

1010 * @param value Binding style value.
1011 */
1012function isStylingValuePresent(value: any): boolean {
1013 // Currently only `undefined` value is considered non-binding. That is `undefined` says I don't
1014 // have an opinion as to what this binding should be and you should consult other bindings by
1015 // priority to determine the valid value.
1016 // This is extracted into a single function so that we have a single place to control this.
1017 return value !== undefined;
1018}
1019
1020/**
1021 * Normalizes and/or adds a suffix to the value.

Callers 2

updateStylingFunction · 0.85
findStylingValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected