54472: Create method in comcol-data-service intermediate commit

This commit is contained in:
Kristof De Langhe
2018-08-08 13:49:34 +02:00
parent 0da645931c
commit aa73e874a5
3 changed files with 21 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import { Component } from '@angular/core';
import { Community } from '../../core/shared/community.model';
@Component({
selector: 'ds-create-community',
@@ -8,7 +9,9 @@ import { Component } from '@angular/core';
export class CreateCommunityPageComponent {
onSubmit(data: any) {
console.log('yay, made it with name: ' + data.name);
Object.assign(new Community(), {
// TODO: Create community object to add to rest
});
}
}