/* Directive - This directive is used to render raw html  */
/* Example: dynamic-html="rawHtml" - Check AFS Card Layout */
(function () {
    appRoot.directive('dynamichtml', function ($compile) {
        return {
            restrict: 'A',
            replace: true,
            link: function (scope, ele, attrs) {
                scope.$watch(attrs.dynamichtml, function (rawHtml) {
                    ele.html(rawHtml);
                    $compile(ele.contents())(scope);
                });
            }
        };
    });
}());;
