PDF rausgenommen
This commit is contained in:
@ -0,0 +1,3 @@
|
||||
<div class="componentClass">
|
||||
{{ componentAs.myProperty }}
|
||||
</div>
|
@ -0,0 +1,34 @@
|
||||
/*!
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*/
|
||||
|
||||
/**
|
||||
* Usage:
|
||||
* <piwik-example-component>
|
||||
*/
|
||||
(function () {
|
||||
angular.module('piwikApp').component('piwikComponent', {
|
||||
templateUrl: 'plugins/ExamplePlugin/angularjs/example-component/example-component.component.html?cb=' + piwik.cacheBuster,
|
||||
bindings: {
|
||||
// showAllSitesItem: '<'
|
||||
},
|
||||
controller: ComponentController
|
||||
});
|
||||
|
||||
ComponentController.$inject = [];
|
||||
|
||||
function ComponentController() {
|
||||
// remember to keep controller very simple. Create a service/factory (model) if needed
|
||||
|
||||
var vm = this;
|
||||
vm.myProperty = 'component';
|
||||
vm.doSomething = doSomething;
|
||||
|
||||
function doSomething() {
|
||||
|
||||
}
|
||||
}
|
||||
})();
|
@ -0,0 +1,3 @@
|
||||
.componentClass {
|
||||
// ...
|
||||
}
|
Reference in New Issue
Block a user