Skip to content

ion-nav-bar not working properly when using components #6528

@DAB0mB

Description

@DAB0mB

Hi all!

I've been trying to implement a component-based app using angular@1.5.x, but unfortunately I've encountered some problems with the navigation bar provided by ionic.

I would expect the bar to display a title and some buttons, but nothing is shown, and on top of that, the contents of the page is positioned behind the empty bar shown on the screen.

I used the components as the templates show by the $stateProvider, but when using these templates directly without going through any components, it works.

I'm currently writing an example app and I'd like to use a components architecture since it's best practice. Any help would be appreciated.

This is the component version of the app I'm writing, which is not working:

https://github.com/DAB0mB/angular-meteor-whatsapp/tree/issue/components

And this is the working version, where I use the templates directly:

https://github.com/DAB0mB/angular-meteor-whatsapp/tree/feat/angular-ecmascript

Inside the client/scripts folder you can find the routes.js and components.js file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions