Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

novo CRUD adicionado #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/app/Artigo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export class Artigo {
public titulo : string;
public palavraChave : string;
public resumo : string;
public codEvento: number;

constructor(titulo: string, palavraChave: string, resumo: string, codEvento:number) {
this.titulo = titulo;
this.palavraChave = palavraChave;
this.resumo = resumo;
this.codEvento = codEvento;
}
}
11 changes: 11 additions & 0 deletions src/app/Autor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export class Autor {
public nome : string;
public email : string;
public nomeArt : string;
constructor(nome: string, email: string, nomeArt :string) {
this.nome = nome;
this.email = email;
this.nomeArt = nomeArt;
}

}
29 changes: 18 additions & 11 deletions src/app/Evento.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
export class Evento {
public id: number;
public nome: string;
public sigla: string;
public inicio: string;
public termino: string;
public url: string;
public cidade: string;
public estado: string;
public local: string;
public id : number;
public nome : string;
public sigla : string;
public inicio : string;
public termino : string;
public url : string;
public cidade : string;
public estado : string;
public local : string;

constructor(id: number, nome: string, sigla: string) {
constructor(id: number, nome: string, sigla: string, inicio: string,
termino: string, url: string, cidade: string, estado: string, local: string) {
this.id = id;
this.nome = nome;
this.sigla = sigla;
this.inicio = inicio;
this.termino = termino;
this.url = url;
this.cidade = cidade;
this.estado = estado;
this.local = local;
}
}
}
3 changes: 3 additions & 0 deletions src/app/app.component.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.col-md-8 {
float: left;
}
7 changes: 5 additions & 2 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<div class="container">
<evento-manager></evento-manager>
</div>
<evento-manager></evento-manager>
</div>
<div class="container">
<rodape></rodape>
</div>
13 changes: 6 additions & 7 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { EventoManagerComponent } from './evento-manager.component';

import { RodapeComponent } from './rodape.component';
@NgModule({
imports: [
BrowserModule,
FormsModule,
HttpModule
FormsModule
],
declarations: [
AppComponent,
EventoManagerComponent
EventoManagerComponent,
RodapeComponent
],
bootstrap: [AppComponent]
bootstrap: [ AppComponent ]
})
export class AppModule { }
16 changes: 0 additions & 16 deletions src/app/cidades.service.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/app/estados.service.ts

This file was deleted.

Loading