I am creating a web application from scratch. I have login form page which on successful authentication, navigates user to home page where we will have a menu bar and dashboard view. Now user can click on any menu option and navigates between pages.
My problem is i have to use ng-view in home.aspx and not in login.aspx. And all my scripts are included in login.aspx page. When I write routing in the home.aspx ng-view wont work. Can you please guide here?
You can add your scripts to your layout page which is the parent of all pages when you add script over there it will be accessible to all application pages
Related
The login page doesn't actually have to have any real auth functionality, but I am trying to understand how to add an outside page that is not a tab which contains a button that links to the tabs view.
You can combine ionic sidemenu template with tabs. Here you can find sidemenu template Checkout this https://github.com/driftyco/ionic-starter-sidemenu
and all you need to do is to combine the sidemenu template with tabs.html in this demo https://github.com/driftyco/ionic-starter-tabs
I used ui-router in my project. "index.html" has my root view that my project template apply in this view.
now I want to load login page in my routing. but I didn't want to show login page with the project template(I want to have a login page without my project template, but will using my routing).
how do I that?
For example
In my angular website I have 2 pages called /app , /app/users
If someone visits /app page it displays app.html content
i) When user navigate from /app page to /app/users page angular is fetching users.html and displays inside /app.html 's ui-view.
ii) But if user visits /app/users page directly then my server routing this into users-full-page.html page which have both app.html and users.html codes. Also it have same AngularJs functionality. (Am doing this for SEO purpose)
Now the problem is, In my second case when user visit directly into /app/users page after the page load Angular reloading the users.html content again which already loaded directly from server
So how to prevent this?
Note
Actually I don't have error or problem on Angular code anywhere to show. It's working. I want to prevent one of its feature. When user navigate /app/users page it loading users.html content without problem. But when user visits /app/users page directly I already loaded users.html content in server side itself. So I don't want angular to load it again. So I need to prevent
i have an simple ion sidebar app with links inside the sidebar so when the user taps on the link in the sidebar a new view is loaded
but when the user taps the back button i want them to go to the home page form the view in which they where.
i accomplish this using
$state.go('state.name')
And it works fine but when i arrive at the home pace the sidebar "hamburger" icon is replaced with a back button to the view.
so is there a way to navigate to home without any history?
i am using all latest version of ionic
In Ionic 1.0.0-beta.14 you can do $ionicHistory.clearHistory()
More info
i want to make my visualforce page as home page in my sandbox.
So is it possible to make visualforce page as home page in salesforce.
I can think of two things that might work for you.
You can embed a Visualforce Page in your home page layout
Similarly, you could create an HTML area home page component with a little javascript that redirects from the home page to the visualforce page:
<script language="JavaScript">
window.location.replace("/apex/YourVfPage");
<script>
I don't think so.
What you can do is, build a visualforce page, create a tab for that, add that tab to your application and make that as the default tab.
As was mentioned above - one thing you can try is the following:
Create the visualforce page
Create a custom tab for that visualforce page called "Home" (or whatever you want to call it)
Remove the default "Home" tab from the list of tabs a user sees (can be done via customizing the tabs & profile editing)
Add your new Home tab to the user and make it their default tab
I believe that should accomplish what you're wanting to do.
No We can't make visualforce page as home page in classic in Lightning it is possible to make it as a home page.
or
you want to by click on the tab to display the visualforce page is possible using visalforce tab.