in magento2 add custom.js file
file custom.js
require(
[
'Mageaddons_Popup/js/angular.min',
'Mageaddons_Popup/js/textAngular-rangy.min',
'Mageaddons_Popup/js/textAngular-sanitize.min',
'Mageaddons_Popup/js/textAngular.min'
],
function($){
'use strict';
// code
});
i get error
Error: Mismatched anonymous define() module: function (a){ "use strict"; window.rangy=a("rangy"),window.rangy.saveSelection=a("rangy/lib/rangy-selectionsaverestore")} http://requirejs.org/docs/errors.html#mismatch
var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id); in require.js