CLI Page Generator


#1

is there a way to use the ionic cli to generate a page into a specific path.

for example i know ionic g page home would give me a folder in my pages folder containing home.ts , home.html and home.scss.

However , what if I wanted the page home to be inside pages/tater-tots .

Is that possible?


#2

Go to the folder inside your pages/tater-tots using command prompt.

Ionic provides us with a command that does all of that for us in one go. We can generate the same page using the following command.

ionic g page “nameOfThePage”


#3

Give Me An Error

Error: ENOENT: no such file or directory, scandir 'D:\work\Momentum Solutions Co\MyIonicProject\src\pages\taps\node_modules\ioni
c-angular\templates\component'
````Preformatted text`