Hi here is my angular js code. I am a complete novice in angular development.
<div ng-app="">
<input type="text" ng-model="firstname">
<input type="text" ng-model="lastname">
<p>Firstname : <span ng-bind="firstname"></span>
</p>
<p>Lastname :<span ng-bind="lastname"></span>
</p>
<p>Full name :<span>{{firstname +" "+lastname}}</span>
</p>
</div>
You can find the fiddle here
If I don't add the ng-controller
directive the whole thing works. But when I adds the directive the whole thing stops working and the controller function is not getting executed.
Actually I am trying something similar to this