Skip to content

Commit

Permalink
Merge pull request #3 from actionanand/features/1-http-feature
Browse files Browse the repository at this point in the history
colorful console messages
  • Loading branch information
actionanand authored Sep 26, 2024
2 parents 2402563 + 36664f3 commit f1a4783
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,4 @@ To configure the pre-commit hook, simply add a `precommit` npm script. We want t
- [GitHub Actions for Angular](https://github.com/rodrigokamada/angular-github-actions)
- [Angular 16 - milestone release](https://github.com/actionanand/ng16-signal-milestone-release)
- [Colorful Console Message](https://www.samanthaming.com/tidbits/40-colorful-console-message/)
13 changes: 12 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,15 @@ import { UserPlacesComponent } from './places/user-places/user-places.component'
styleUrl: './app.component.css',
imports: [AvailablePlacesComponent, UserPlacesComponent],
})
export class AppComponent {}
export class AppComponent {
styles = ['color: indigo', 'background: #90EE90', 'font-weight: bold', 'font-size: 18px'].join(';');

constructor() {
console.log(
'%cUse local setup by cloning the project to see it in full power with backend api calls.',
'color: green; background: yellow; font-size: 23px',
);
console.log('%c%s', this.styles, `git clone https://github.com/actionanand/angular-http-project.git`);
console.log('GitHub Location: ' + 'https://github.com/actionanand/angular-http-project');
}
}

0 comments on commit f1a4783

Please sign in to comment.