For questions about ngoninit, a lifecycle hook that is called after Angular has initialized all data-bound properties of a directive.