Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs(guide/component) correct usage recommendations #15042

Closed
@zuzusik

Description

@zuzusik

Currently in section When not to use Components it is said:

  • for directives that rely on DOM manipulation, adding event listeners etc, because the compile
    and link functions are unavailable

But there is a $postLink hook which is described in the same document as follows:

  • $postLink() - Called after this controller's element and its children have been linked. Similar to the post-link
    function this hook can be used to set up DOM event handlers and do direct DOM manipulation.

I assume text from the first quote should be changed to something like

  • for directives that need to perform actions in compile and pre-link functions, because they aren't available

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions