Skip to content

Commit 86f805e

Browse files
docs(angular): replace substr
Co-authored-by: Brandy Smith <[email protected]>
1 parent a2e108d commit 86f805e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/angular/your-first-app/7-live-reload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class PhotoService {
6363
});
6464

6565
// Delete photo file from filesystem
66-
const filename = photo.filepath.substr(photo.filepath.lastIndexOf('/') + 1);
66+
const filename = photo.filepath.slice(photo.filepath.lastIndexOf('/') + 1);
6767

6868
await Filesystem.deleteFile({
6969
path: filename,

versioned_docs/version-v7/angular/your-first-app/7-live-reload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class PhotoService {
6363
});
6464

6565
// Delete photo file from filesystem
66-
const filename = photo.filepath.substr(photo.filepath.lastIndexOf('/') + 1);
66+
const filename = photo.filepath.slice(photo.filepath.lastIndexOf('/') + 1);
6767

6868
await Filesystem.deleteFile({
6969
path: filename,

0 commit comments

Comments
 (0)