/** * Created by wisestone on 2018-08-29. */ 'use strict'; define(['app'], function (app) { app.directive('includeReplace', [ function () { return { require : 'ngInclude', restrict : 'A', link : function (scope, element, attrs) { element.replaceWith(element.children()); } }; }]) });