Download images from php server and save it in img folder

i am new in ionic framework and i want to download images using rest api and save it in root folder (img) in ionic framework please give me any idea how can i do … please guide my thank you.

You should check out cordova’s file plugin and ng-cordova’s wrapper for it