QR Code Scanner

I want to create QR Code App. i am using ng-cordova Barcode scanner plugin.For now i used ionic project and integrated the plugin its worked for me.So now i want to use plugin without any view means when somebody start my app its open my scanner and back button close the app so i am facing problem when i click on back button it shows me the blank view.

Any body have some idea which type of project i install and where i put my scanner code

thank you