I need to enhance some html within the body element of lets say the index page. How can I achieve that? The example shows importing aurelia bootstrapper using SystemJS. Is that the same approach I would take when using aurelia-cli?
But what if I do not want to specify aurelia-app=“main”? The idea is that I need to manually bootstrap the app in a script tag and the actual html would be nested in the body tag. I need to bootstrap the app in the index.html without having to rely on a startup file (main.js)… Make sense? =/
One more thing, I couldnt get DI working for manual bootstrapping with enhance! I tried both @autoinject and @inject… The view model uses a service which requires HttpClient to talk to an API… Any suggestions?