У меня есть app.js, который я изменяю и пробовал все под солнцем, чтобы вытащить settings.options.chatURL.value в атрибут html iFrame scr. ближайший я получаю вытаскивает окно предупреждения, но все же говорит {{settings.options.chatURL.value}} ???Как назначить угловую установку атрибуту html
var app=angular.module('settingsGenerator',['colorpicker.module','jdFontselect']).constant('jdFontselectConfig',{googleApiKey:'xxxxxx'});
app.controller('SettingsGeneratorCtrl',['$scope', '$window', function($scope, $window){
var Setting=function(type,desc,dflt,required){
this.type=type||"String";
this.desc=desc||"This is a setting that can be changed to a value.";
this.required=required||false;
this.default=dflt;
this.value=dflt;
this.toString=function(){
return this.value.toString();
};
};
$scope.products={
'customizable-intro':{
name:'Customizable Intro',
settings:{
options:{
backgroundDisplay:new Setting("Radio","Do you want to display a background?","yes",true),
backgroundType:new Setting("RadioV","Video or Image Background?","image",true),
chatDisplay:new Setting("Radio","Do you want to display a Chat Box?","yes",true),
chatURL:new Setting("String","Chat Box URL (stream labs)","http://example",false)
}
}
}
}
}]);
<html>
<div id="chat">
<iframe id="twitchChat" src="*({{NEED URL HERE}})*">
</iframe>
<span id="chatURL">{{settings.options.chatURL.value}}</span>
</div>
</html>
у вас есть угловой в вашей HTML странице? – MMK