# @controller

The @controller directive attaches a controller class to the component. The controller class must be registered in a module.

# Usage

Syntax

<component-name @controller="module-name:ControllerName">

# Example

This example demonstrates the directive syntax.