For example I have 10 template for preview.. see this following example where user comes and enters his/her details and can see live preview.
http://plnkr.co/edit/KNNLPF2Inr3IW2GaRI86?p=preview
// Code goes here
var app = angular.module("myApp", []);
As well as he/she can change template by select template name from available template from select box.
As far I know this can be achieved using angularjs custom directives. But I don't know how to achieve this.
How can be achieved this?
ng-include="template"templatename will changed on basis of condition..