1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| /**
| * 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());
| }
| };
| }])
| });
|
|