asset functions in angular