var app = angular.module('plunker', ['gist-embed']);
app.controller('MainCtrl', function($scope, $sce) {
$scope.html = $sce.trustAsHtml("<code data-gist-id='9630789' data-gist-file='get_resp.js'></code>");
});
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<meta charset="utf-8" />
<title>AngularJS Plunker</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="style.css" />
<script data-require="jquery@2.1.1" data-semver="2.1.1" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script data-require="angular.js@1.2.x" src="https://code.angularjs.org/1.2.27/angular.js" data-semver="1.2.27"></script>
<script data-require="angular-gist-embed@0.0.3" data-semver="0.0.3" src="https://rawgit.com/pasupulaphani/angular-gist-embed/master/dist/angular-gist-embed.js"></script>
<script src="app.js"></script>
</head>
<body ng-controller="MainCtrl">
<div ng-include="'template.html'"></div>
</body>
</html>
/* Put your css in here */
<p>gist in template:</p>
<code data-gist-id="9050052" data-gist-line="0-10"></code>
<p>gist in ngBindHtml:</p>
<div ng-bind-html="html"></div>