UNPKG

acha-framework

Version:

is a modular framework on both client (angular.js) and server (node.js) side, it provides security, orm, ioc, obfuscation and ...

26 lines 729 B
(function ($, angular, underscore, window, document, undefined) { 'use strict'; angular.module('frontend.directives').directive('sideNavigationExtend', [ '$compile', function ($compile) { return { restrict: 'E', replace: true, scope: { model: '<', tag: '<?' }, compile: function ($$element) { return { pre: function (scope, element, attr) { var selector = '<0></0>'.replace(/0/g, scope.model); var target = $(selector); $compile(target)(scope); element.replaceWith(target); } }; } }; } ]); }(jQuery, angular, _, window, document));