DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Can You Avoid the Git ‘Fatal: Refusing to Merge Unrelated Histories’ Error?
  • A Primer on the History and Evolution of Incident Management to Today
  • History of SRE: Why Google Invented the SRE Role
  • The 7 Most Expensive Bugs in History

Trending

  • Build a Serverless App Fast With Zipper: Write TypeScript, Offload Everything Else
  • How To Verify Database Connection From a Spring Boot Application
  • How To Validate Archives and Identify Invalid Documents in Java
  • Analyzing Stock Tick Data in SingleStoreDB Using LangChain and OpenAI's Whisper
  1. DZone
  2. Coding
  3. Frameworks
  4. Quick Tip: Navigating in Ionic without History

Quick Tip: Navigating in Ionic without History

A quick tutorial on how to move a user logging in to a new state with the Ionic framework.

Raymond Camden user avatar by
Raymond Camden
·
Oct. 30, 15 · Tutorial
Like (2)
Save
Tweet
Share
2.49K Views

Join the DZone community and get the full member experience.

Join For Free

before i start, just a quick note. what i’m describing here is clearly documented , but as i keep reminding myself i’ve yet to read 100% of the ionic docs and i really need to. a big thank you goes out to @breakingthings on the ionic worldwide slack channel for letting me know about this. so here’s the question. imagine you have an ionic app with a login screen:

ios simulator screen shot jul 14, 2015, 12.58.55 pm

after logging in, you want to automatically move the user to a new state:

$state.go('home');

but when you do, you end up with this in your header:

shot2

that link back to the login view comes from how ionic handles view history and the header. most of the time you probably want that, but in this case, i definitely do not want it. luckily it is rather simple to fix using $ionichistory :

$ionichistory.nextviewoptions({
    disableback: true
});
$state.go('home');

yep, that’s it. nice and simple. and just in case it isn’t clear, this modification only impacts the next change.

Ionic (mobile app framework) History (command)

Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Can You Avoid the Git ‘Fatal: Refusing to Merge Unrelated Histories’ Error?
  • A Primer on the History and Evolution of Incident Management to Today
  • History of SRE: Why Google Invented the SRE Role
  • The 7 Most Expensive Bugs in History

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: