Hello everybody and happy new year !
I try to insert the parameter $ctrl.configFile.samples into src but I do something wrong and get an error on the console (like iframe src read $ctrl.configFile.samples or something like that):
Failed to load resource: net::ERR_FILE_NOT_FOUND
function _downloadSamples() {
var filePath = path.join(__dirname,'/../','/../config.json');
this.configFile = JSON.parse(fs.readFileSync(filePath, 'utf8'));
$mdDialog.show({
controller: sideActionsController,
controllerAs: '$ctrl',
template:
`
<md-toolbar class="root-container">
<iframe width="1280" height="720" src="$ctrl.configFile.samples" frameborder="0" scrolling="yes"></iframe>
`,
bindToController: true,
clickOutsideToClose: true,
fullscreen: true,
parent: $rootScope.parentEl
})
}