Created
July 9, 2020 11:33
-
-
Save thisiszoaib/f145f6740b72a3bd88ec5fd8557224a4 to your computer and use it in GitHub Desktop.
Weather 4
This file contains hidden or 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
| @Component({ | |
| selector: "app-weather-report", | |
| templateUrl: "./weather-report.component.html", | |
| styleUrls: ["./weather-report.component.scss"] | |
| }) | |
| export class WeatherReportComponent implements OnInit { | |
| constructor( | |
| private weatherService: WeatherService, | |
| private route: ActivatedRoute | |
| ) {} | |
| ngOnInit() { | |
| // Our route params observable | |
| this.route.params | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment