Please have a look at the IoT Forum rules & General Posting guidelines the next time you post something.
The tutorial application has some samples on how to use realtime within angular. You can scaffold the tutorial application using: c8ycli new my-app tutorial
as described multiple times within the documentation: Tutorials - Cumulocity IoT Guides