Closed vacarsu closed 8 years ago
It would help if you could share the JS code also and perhaps a link to the repo, as I have very little experience with ionic.
However, off the top of my head, you could try using the replace
option on your @Component
decorator, like this:
@Component({
selector: 'component-directive',
replace: true
})
class ComponentDirective {
}
It replaces the Component wrapper with the actual html template code. See the replace attribute of the angular1 directive. This will reduce the number of wrapper elements and hopefully give you what you are looking for.
@vacarsu So, has my suggestion worked for you?
Closing due to lack of response. Please feel free to reopen if required.
In app.html I have the following
But because the routes load a directive around each route, this causes the navigation logic for showing
view-titles
and theion-nav-back-button
to not work properlyexample, this is what the resulting html looks like which is causing issues
Is there anyway of getting the ionic navigation working properly while still using component syntax?