Ho do start a plain ionic project - no angular or react?

First of all I’d like to say ‘Hi’, I am new to the forum and this is my first post.

My question is: How do I ‘ionic start …’ a new project that does not include Angular? I would like a plain project to build an app using vanilla JS and not use Angular or React.

Now, if I start a project it is an Angular project by default. I can just use plain JS and the javaScript versions of the ionic components and it all seems to work fine but there are some Angular files still present and if I try to remove them the I end up with errors.

I could continue with those Angular files present in the build, and that may not really matter (does it?), but it it would be nice not to have them and just have a plain ionic project that builds to Android and iOS.

Many thanks
Bryan

I really don’t suggest going down the route of no framework to be honest. As there’s now a lot of other pieces of your app that you’ll need to figure out on your own. While it can be possible, using the links to our CDN

Just remember, you invest more time into building your own mini framework when you could just use react or angular.

1 Like

That’s a fair point but sometimes you just don’t need a framework. I have a short contract to convert an existing app (originally built on cordova and jQuery Mobile) and I decided to use Ionic. It’s just a very simple app and I intend to use most of the original code and the JS Ionic components will mostly replace the jQuery mobile components. I know React reasonably well and could use it in this case but it’d be a bit of a sledge hammer to crack a nut and may well take me more time to do.

Thanks for the info about the CDN. Quick side question - Once I’ve built a mobile app that contains the links to the CDN, are the files then fully included in the app or is the CDN always used?

Thanks

CDN Is always used if you link to it. You could use something like pika/pack to bundle things, but thats something you’d maintain.

1 Like