Last active
May 16, 2021 17:18
-
-
Save yigitfindikli/10831f28a394c95b14da9f4bbad584d3 to your computer and use it in GitHub Desktop.
PrimeNG Colors - Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { MessageService, PrimeNGConfig } from 'primeng/api'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
adress: string; | |
firstname: string; | |
lastname: string; | |
visibleSidebar: boolean; | |
constructor(private primengConfig: PrimeNGConfig, private messageService: MessageService) {} | |
ngOnInit() { | |
this.primengConfig.ripple = true; | |
} | |
submit() { | |
this.messageService.add({ | |
severity: 'info', | |
summary: 'Welcome!', | |
detail: this.firstname + ' ' + this.lastname | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment