Skip to content

Instantly share code, notes, and snippets.

@JIntrocaso
Created Sep 21, 2020
Embed
What would you like to do?
Trigger File Downloads
ngOnInit(): void {
this.thankYouDetails = this.campaign.thankYouMessage;
this.downloadMaterials(this.campaign.materials);
}
public downloadMaterials(materials: Material[]) {
materials.forEach(m => {
window.location.href = m.metadata.file.url;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment