How do you remove add-teacher.html?

Case:

  1. Create Edit Teacher Page (Page)
  2. Created this directory [src/pages/edit-teacher-page]
  3. Copy edit-teacher-page.html to xyz.html
  4. ionic will transpile the add-teacher.html
    Try to remove add-teacher.html. It will give error…

How do you remove add-teacher.html?
I think this is something todo with npm.

Failed to load resource: the server responded with a status of 404 (Not Found)
polyfills.js:3 Unhandled Promise rejection: Failed to load add-teacher.html ; Zone: ; Task: Promise.then ; Value: Failed to load add-teacher.html undefined
o @ polyfills.js:3
polyfills.js:3 Error: Uncaught (in promise): Failed to load add-teacher.html
at d (polyfills.js:3)
at l (polyfills.js:3)
at l (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at n.runTask (polyfills.js:3)
at a (polyfills.js:3)
at XMLHttpRequest.invoke (polyfills.js:3)

Where does add-teacher.html come from?

Please edit your post and use the </> button above the post input field to format your code or error message or wrap it in ``` (“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

1 Like

Sorry, my bad…it’s in the

@IonicPage()
@Component({
selector: ‘browse-teacher-page’,
providers: [TeacherService],
templateUrl: ‘browse-teacher-page.html’,
})

Thx.

Unless you are absolutely sure what you are doing, don’t put providers on components.