From 21d72c4a80fe2937d0c4ddd20624b27adbcd989b Mon Sep 17 00:00:00 2001 From: lizi00164331
<div id="textArea" ng-init="init()"></div>
+ <div id="Email"></div>
+ <div id="note"></div>
+
+ var data ={"Note" : {"message" : "Hi I am Note","placement" : "bottom"},"Email" : {"errmsg" : "The email is required.","placeholder" : "Email","modalVar":"email","errtag":"emailErr","errfunc":"validateemail"}};
+
+ $scope.init = function() {
+ loadTextArea();
+ }
+
+ function loadTextArea() {
+ var note = $(modelTemplate).filter('#note').html();
+ var email = $(modelTemplate).filter('#email').html();
+ var html = Mustache.to_html(email, data.Email);
+ $('#email').html($compile(html)($scope));
+ var html = Mustache.to_html(note, {"placement":data.Note.placement});
+ $('#note').html(html);
+ $("#noteanchor").popover({
+ template: ''+data.Note.message+''
+ });
+
+ }
+
+
+