OOP for angular