Attach
Use attach
to link objects to their parent.
If the directive's element is removed from the DOM, it will automatically detach from its parent.
The following example shows how to attach a material and a geometry to a mesh object:
Last updated