how to use require in angular