Hi Gomtesh,
Thanks for using Sycnfusion products,
We have analyzed your requirement and prepared the sample based on your requirement. Please get the sample from below location
Sample
To set the scope variable as src to ng-inlcude, please refer the below code snippet
[html]
<ng-include src="viewPage"></ng-include>
|
To bind the updated scope variable value, we have to call $scope.$apply() method for binding. Please refer the below code snippet
Angular controller:
$scope.loadpage = function (args) {
for (var i = 0; i < UrlData.length; i += 1) {
var jsonobject = UrlData[i];
if (jsonobject.id == args.id) {
$scope.viewPage = jsonobject.url;
}
$scope.$apply();
}
};
|
Please check with the given sample and let us know if you have further queries,
Regards,
Sasikala Nagarajan