JavaScript Nesting ion-nav-view within content nesting view within text,nesting of view within text is

I have a basic, working example of what I want to do, but taking this approach comes with a strange limitation. In templates/group.html, there doesn't appear to be any way to add content above or below the ion-nav-view.

Click here for live demo.

  $stateProvider.state({
    name: 'home',
    url: '/',
    templateUrl: 'templates/home.html'
  });
  $stateProvider.state({
    name: 'group',
    url: '/group',
    templateUrl: 'templates/group.html',
    abstract: true
  });
  $stateProvider.state({
    name: 'group.home',
    url: '/',
    templateUrl: 'templates/group-home.html'
  });
  $stateProvider.state({
    name: 'group.post',
    url: '/post/:id',
    templateUrl: 'templates/group-post.html'
  });
    <ion-nav-bar class="bar-positive">
      <ion-nav-back-button>
      </ion-nav-back-button>
    </ion-nav-bar>

    <ion-nav-view></ion-nav-view>

    <script id="templates/home.html" type="text/ng-template">
      <ion-view view-title="Home">
        <ion-content>
          <p>This is home.</p>
          <a ui-sref="group.home">Go to a group.</a>
        </ion-content>
      </ion-view>
    </script>

    <script id="templates/group.html" type="text/ng-template">
      <ion-view view-title="Group">
        <ion-nav-view></ion-nav-view>
      </ion-view>
    </script>

    <script id="templates/group-home.html" type="text/ng-template">
      <ion-view view-title="Group Home">
        <ion-content>
          <p>This is the group home.</p>
          <a ui-sref="group.post({id: 4})">Go to group post.</a>
        </ion-content>
      </ion-view>
    </script>

    <script id="templates/group-post.html" type="text/ng-template">
      <ion-view view-title="Group Post">
        <ion-content>
          <p>This is a group post.</p>
        </ion-content>
      </ion-view>
    </script>

How can I get this behavior, but also add some content within group.html?

For example:

    <script id="templates/group.html" type="text/ng-template">
      <ion-view view-title="Group">
        <p>Some stuff here.</p>
        <ion-nav-view></ion-nav-view> <!-- group child view stuff here -->
        <p>Stuff here, too, if possible.</p>
      </ion-view>
    </script>

I can see why the nested ion-nav-view doesn't work out because it has a full screen kind of container going on, but changing it out for a ui-view breaks the parent ion-nav-view... the transitions and ion-nav-bar stop working. It seems like the parent ion-nav-view shouldn't mind there being a child ui-view. Perhaps this kind of UI just isn't possible with ionic?

Answer:1

I am trying to add a company logo to header of Drawer Navigator, but it displays only screen's title. Here is my code: import React, {Component} from 'react'; import {Platform, StyleSheet, Text, View,...

I am trying to add a company logo to header of Drawer Navigator, but it displays only screen's title. Here is my code: import React, {Component} from 'react'; import {Platform, StyleSheet, Text, View,...

  1. image navigation header
  2. header image react navigation

I have an array containing several objects similar to the following: {person: {name: "Steve", id: 1}, role: 1} {person: {name: "Phil", id: 2}, role: 1} {person: {name: "Steve", id: 1}, role: 3} {...

I have an array containing several objects similar to the following: {person: {name: "Steve", id: 1}, role: 1} {person: {name: "Phil", id: 2}, role: 1} {person: {name: "Steve", id: 1}, role: 3} {...

  1. return objects array
  2. return array objects php
  3. return array objects angular
  4. return objects in array javascript
  5. java return objects array
  6. c# return array objects
  7. return all objects in array
  8. return all objects in array javascript
  9. return objects inside array

I want to pass the value from select list - ListComponentComponent to sibling component - DisplayComponentComponent and display the value in the template of DisplayComponentComponent. I want to use ...

I want to pass the value from select list - ListComponentComponent to sibling component - DisplayComponentComponent and display the value in the template of DisplayComponentComponent. I want to use ...

import React, { useContext } from 'react'; useContext is undefined. error details: Uncaught (in promise) TypeError: Object(...) is not a function error when processing const context = ...

import React, { useContext } from 'react'; useContext is undefined. error details: Uncaught (in promise) TypeError: Object(...) is not a function error when processing const context = ...

  1. react typeerror object(...) is not a function
  2. react typeerror object.values is not a function
  3. react typeerror object(...)(...).then is not a function
  4. react typeerror object expected
  5. react typeerror object(...) is not a function hooks
  6. react typeerror object(...)(...) is undefined
  7. reactjs typeerror object(...) is not a function
  8. react uncaught typeerror object(...) is not a function
  9. react usestate typeerror object(...) is not a function
  10. react redux typeerror object(...) is not a function
  11. react bootstrap typeerror object(...) is not a function
  12. react lazy typeerror object(...) is not a function
  13. react useeffect typeerror object(...) is not a function
  14. react dropzone typeerror object(...) is not a function
  15. react makestyles typeerror object(...) is not a function
  16. react × typeerror object(...) is not a function
  17. react hoc typeerror object(...) is not a function
  18. react typeerror cyclic object value
  19. react error typeerror object(...) is not a function
  20. react useref typeerror object(...) is not a function