<!DOCTYPE html>
<html>
<head>
    <title>Wikitechy AngularJS Tutorial</title>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
    <body>
        <div ng-app="myApp" ng-controller="templateCtrl">
            <h3>ng-bind-template Directive example in AngularJS Tutorial</h3>
            FirstName:<input type="text" ng-model="firstName"><br/><br/>
            LastName:<input type="text" ng-model="lastName">
            <p ng-bind-template="{{firstName}}{{lastName}}"></p>
        </div>
        <script>
            var app = angular.module("myApp", []);
            app.controller("templateCtrl", function($scope) {
                $scope.firstName = "wiki";
                $scope.lastName = "techy";
            });
        
</script>
    </body>
</html>
 


www.wikitechy.com © Copyright 2016. All Rights Reserved.