I have an assignment to implement a preview of an URL which means it will display the logo and tagline just like facebook.
I know that we have urLive library in jQuery but i have to implement in angularjs.I have tried following code but it doesn't work.
<body ng-app="myapp">
<div ng-controller="AppCtrl">
<iframe ng-src="{{currentUrl}}"> </iframe>
</div>
<script>
var app=angular.module('myapp',[]);
app.controller('AppCtrl',function($scope,$sce){
$scope.currentUrl = $sce.trustAsResourceUrl("http://facebook.com");
});
</script>
Do we have any such thing in angularjs?`