Access Child Components From the Template

    The most straightforward examples of this may be seen dealing with forms or inputs:

    app/app.component.html

    View Example

    This isn't a magic feature which only forms or inputs have, but rather a way of referencing the instance of a child component in your template. With that reference, you can then access public properties and methods on that component.

    app/profile.component.ts