Text Area

Usage
Create a div tag in html file with specific id for example Email and write a specific function in javascript file to perform your business logic. An sample example as shown below for Email and Note, the same logic can be followed by all remaining text fields:

HTML file:
<div id="textArea" ng-init="init()"></div>
<div id="Email"></div>
<div id="note"></div>

Javascript file:

        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+'
' }); }