- Added directive controller to handle directive-specific logic.