Skip to content

Instantly share code, notes, and snippets.

View nitayneeman's full-sized avatar

Nitay Neeman nitayneeman

View GitHub Profile
const routes: Routes = [
{ path: 'heroes', component: HeroesComponent }
];
@NgModule({
imports: [
RouterModule.forChild(routes)
],
exports: [
RouterModule
@NgModule({
imports: [
HeroDetailRoutingModule
],
declarations: [
HeroDetailComponent
],
exports: [
HeroDetailComponent
]
@NgModule({
imports: [
HeroesRoutingModule
],
declarations: [
HeroesComponent
],
exports: [
HeroesComponent
]
@NgModule({
imports: [
HttpModule
],
declarations: [],
providers: [
HeroService,
HeroSearchService
],
exports: []
@NgModule({
imports: [
CommonModule,
FormsModule
],
declarations: [
HeroSearchComponent
],
exports: [
CommonModule,
rm -f .git/index.lock
git submodule add -f -b master ORIGIN_REPOSITORY_URL public
@Component({
selector: 'progress-bar',
template: `
<div></div>
`,
styles: [`
div {
width: 75%;
height: 20px;
background-color: dodgerblue;