In magento2 to override template files here, but for magento2 extension we have to follow here.
So how to override template files in magento2 extension with out considering theme inheritance.
I want to override vendor\magento\module-ui\view\base\web\js\form\components\collection.js and vendor\magento\module-ui\view\base\web\templates\form\components\collection.html for customer address tab modifications.
With using theme inheritance i can do this by implementing above files in my custom theme files in Magento_Ui folder, but how could I achieve the same for magento2 extension i.e. with in app/code/vendor/module folder.

.htmlfiles? I am trying to overrideMagento_SalesRule/template/payment/discount.html'but with the above method is not working for me, do you have some idea on this? – Keyur Shah Jun 05 '18 at 14:28