File upload using angular and firebase

Could anyone tell me that, how do we upload files using angular to firebase cloud storage and reference that into database. I have two buttons first for uploading images and second for uploading pdfs. I unable to upload. please help me