text: /**
   * Created by akash on 1/8/15.
   */
  (function () {
      angular.module('student')
          .directive("mathjaxBind", function () {
              return {
                  restrict: "A",
                  controller: ["$scope", "$element", "$attrs",
                      function ($scope, $element, $attrs) {
                          $scope.$watch($attrs.mathjaxBind, function (texExpression) {
                              $element.html(texExpression);
                              MathJax.Hub.Queue(["Typeset", MathJax.Hub, $element[0]]);
  
                              if (!texExpression) {
                                  $element.html("");
                              }
                          });
                      }]
              };
          });
  })();
  