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
b64toFile(dataURI): File { | |
// convert the data URL to a byte string | |
const byteString = atob(dataURI.split(',')[1]); | |
// pull out the mime type from the data URL | |
const mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0] | |
// Convert to byte array | |
const ab = new ArrayBuffer(byteString.length); | |
const ia = new Uint8Array(ab); |
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
export const routes: Routes = []; | |
@NgModule({}) | |
export class AppRoutesModule {} |
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
{ | |
... | |
"scripts": { | |
"lint": "ng lint --type-check", | |
... | |
}, | |
"pre-commit": [ | |
"lint" | |
], | |
... |
OlderNewer