push and setRoot to one page in ionic 3 - ionic-framework

I am getting below error when setting Rootpage in ionic 3.
Error: No component factory found for LoginPage. Did you add it to
#NgModule.entryComponents?
but when I add this page into aap.module.ts in declaration and entrypoint section, this error is gone for setRoot but not for push. When I push, it is not working.
I guess that means I can do either setRoot or push to a one page in ionic 3?

Related

How to hide sub domain from Flutter Web App?

I recently got started creating an app with flutter web. in my experience I am using a named navigator to navigate between pages. whatever name I give to the screen is the name that shows up in my URL.
for example if URL is https://www.example.com and Screen Name is home the URL when I navigate to this screen become https://www.example.com/home.
In my use case I hit an API on the splash screen which gets the contents of the next page and on flutter web if I was to reload my https://www.example.com/home page the screen is blank because it turns everything I got from the API into null.
Is there a way I can hide subdomain? so no matter which page the user is at he/she only sees the main domain https://www.example.com.
any help would be appreciated thanks.
PS: I already used setURLStrategy to remove the # symbol from my sub domains
Have you tried using non-named navigation like
Navigator.push, Navigator.pop
Looks like the path appears on the web when you use named routes.

Magento 2 Installtion Assertion Failed -

52693
Receiving this error on our new Magento 2 Install. The issue prevents signed-in customers to use GO TO CHECKOUT BUTTON. Occurs only on Chrome, Edge, and Safari. Dev site never had the issue only occurred once in production. Anyone comes across the error before? Only when signed in, guest checkouts run smoothly. Once signed in, the customer can no longer add items to the cart. Go to checkout button never works.
Error is:
Assertion failed: titles extraction error
_
We had an error happening on our Cart page just today with the same “titles extraction error” string. Eventually we tracked it down to this file in the Chromium source code, chrome/renderer/resources/cart/cart-product-extraction.js.
…which appears to be part of Chrome’s recent New Tab Page’s “Your carts” feature, which made it to the Chrome stable channel recently:
Google Support / Get started with Your carts in Chrome
Google Chrome New Tab page will show shopping carts you’ve left behind
“Chrome Cart” could soon let you shop and check out right from your browser’s new tab page
There seems to be no way to opt out as a developer… but if you’re having the installation problem in other browsers too, it might be unrelated to that message?

Conflict between github.io and github-pages

I have a project in https://chrisbg69.github.io Days after that i create a react app and deploy static files at https://chrisbg69.github.io/portfolio in new repo called portfolio. When i visit app page for first time, she show only header with address .../portfolio. Next, when clicking any of buttons there, opened full app pages, like i expected, but address was changed to https://chrisbg69.github.io not https://chrisbg69.github.io/portfolio. How can i fix that i want both of projects published?
i guess you don't have a route for /parfolio/ in your react/redux router or it not configured properly, so when you entered only the header displayed and the content that your JS router should display is remain empty.
Because /parfolio/ is your app index page in github.io you need to update all your internal routs to look like this /parfolio/resume, /parfolio/aboutme

Can't get rid of tabs when pushing to login

I have an Ionic 3 app where when a user logs out, I want to push them to the login page.
However, when I push to that page I can't seem to get ride of the tabs.
I'm useing:
this.navCtrl.push('LoginPage');
I've tried:
this.navCtrl.setRoot.push('LoginPage');
and a few other things I've seen, but nothing works.
How is this done?
In what page do you run this.navCtrl.push('LoginPage'); ? I'm guessing it is in one of your tab pages. (Side note: the argument for push is not a string, but a class.)
Instead of one of the tab pages, do this in app.component.ts.
this.nav.push(LoginPage);
or just use setRoot, but in app.component.ts
You will need to monitor the login status in app.component.ts, for which you can use a service or RxJS subject

How to load a page without reloading it in protractor

While doing e2e testing using protractor ,a requirement comes to load a page.I tried browser.get,But that reloads the page resulting in cache clear.Getting ERROR as
Failed: Element not found in the cache - perhaps the page has changed since it was looked up
How to load a page without reloading it in protractor?
If you question is about routing in an angular app, then you can try with browser.setLocation().
browser.get('http://angular.github.io/protractor/#/tutorial');
browser.setLocation('api');
// You now will be in http://angular.github.io/protractor/#/api without any page reload
Reference: Protractor API browser.setLocation
Protractor's browser.get will always navigate to a RESET_URL=data:text/html, <html></html> before navigating to the page you requested. There are a couple options to get around this:
browser.driver.get(url) will use the webdriver native command, and bypass protractor's reset url. If you go this route on an angular page, you will want to add in a waitForAngular() before the command so that you wait for the original page to settle before navigating to the new page.
browser.ignoreSynchronization = true in your test will essentially turn browser.get into browser.driver.get and bypass the reset url. The downside here is that your entire test would now be ignoring angular synchronization.
Source: protractor/lib/protractor.js