MCPcopy Index your code
hub / github.com/angular/angular / addPlugin

Method addPlugin

adev/src/app/features/home/animation/animation.ts:263–268  ·  view source on GitHub ↗

* Add and initialize `AnimationPlugin` to the animation. * * @param plugin Plugin to be added * @returns The animation

(plugin: AnimationPlugin)

Source from the content-addressed store, hash-verified

261 * @returns The animation
262 */
263 addPlugin(plugin: AnimationPlugin) {
264 plugin.init(this);
265 this.plugins.push(plugin);
266
267 return this;
268 }
269
270 /**
271 * Cleans all of the resources that might cause memory leaks (e.g. plugins).

Callers 2

initAnimationMethod · 0.80
animation.spec.tsFile · 0.80

Calls 2

initMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected