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

Function addClasses

packages/core/src/animation/utils.ts:305–309  ·  view source on GitHub ↗
(renderer: Renderer, el: RElement, classList: string[])

Source from the content-addressed store, hash-verified

303 * Adds a list of CSS classes to an element using the provided renderer.
304 */
305export function addClasses(renderer: Renderer, el: RElement, classList: string[]): void {
306 for (const item of classList) {
307 renderer.addClass(el, item);
308 }
309}
310
311/**
312 * Cancels any running enter animations on a given element to prevent them from interfering

Callers 2

runEnterAnimationFunction · 0.90
animateLeaveClassRunnerFunction · 0.90

Calls 1

addClassMethod · 0.65

Tested by

no test coverage detected