Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ContentIntro.adapter.ts « ContentIntro « src « vue « CoreHome « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 423501203e48f70dc7974de85d72cc9b24ac1ea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*!
 * Matomo - free/libre analytics platform
 *
 * @link https://matomo.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 */

import { IDirective, IScope } from 'angular';
import ContentIntro from './ContentIntro';

export default function piwikContentIntro(): IDirective {
  return {
    restrict: 'A',
    link: function piwikContentIntroLink(scope: IScope, element: JQuery) {
      ContentIntro.mounted(element[0]);
    },
  };
}

piwikContentIntro.$inject = [];

angular.module('piwikApp').directive('piwikContentIntro', piwikContentIntro);