Skip to content

Commit d1579cf

Browse files
committed
rename module, outputs
1 parent 7c116d0 commit d1579cf

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

config/source.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function component(name, item, meta){
3232
host = JSON.stringify(meta.host),
3333
template = JSON.stringify(meta.template),
3434
inputs = meta.inputs.map(n => `@Input() ${n}: any;`).join(' '),
35-
outputs = meta.outputs.map(n => `@Output() ${n} = new EventEmitter<any>();`).join(' '),
35+
outputs = meta.outputs.map(n => `@Output('${n.split(':')[1]}') ${n.split(':')[0]} = new EventEmitter<any>();`).join(' '),
3636
params = item.parameters.map(param);
3737

3838
return `

examples/viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class AppComponent {
9898

9999
class AppModule {
100100
static get annotations() { return [new NgModule({
101-
imports: [BrowserModule, DynamicModule.withComponents([components.Datagrid]), components.Module],
101+
imports: [BrowserModule, DynamicModule.withComponents([components.Datagrid]), components.AxModule],
102102
declarations: [AppComponent],
103103
bootstrap: [AppComponent]
104104
})]}

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import * as sources from '@activewidgets/datagrid/js';
44
import * as metadata from '@activewidgets/datagrid/metadata';
55
import * as angular from '@angular/core';
66

7-
export const {build, Dynamic, VNodes, ForOf, Module} = adapter(angular);
7+
export const {build, Dynamic, VNodes, ForOf, AxModule} = adapter(angular);
88
export const {Datagrid, Row} = build(sources, metadata);

test/adapter/angular.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import {getQueriesForElement} from '@testing-library/dom';
44
import {TestBed} from '@angular/core/testing';
5-
import {Module} from '@activewidgets/components';
5+
import {AxModule} from '@activewidgets/components';
66

77
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';
88

@@ -15,7 +15,7 @@ import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angul
1515
export function render(Component, props){
1616

1717
TestBed.configureTestingModule({
18-
imports: [Module]
18+
imports: [AxModule]
1919
});
2020

2121
let fixture = TestBed.createComponent(Component),

0 commit comments

Comments
 (0)