Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8854319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:51:14+00:00 2026-06-14T13:51:14+00:00

I am trying to add a new view to John Papa’s Code Camper project.

  • 0

I am trying to add a new view to John Papa’s Code Camper project. I am stuck on the simple hash nav binding. My question is how do I find the code that populates {href: favorites} ? It gets populated with the hash tag #/favorites but I cannot find where that happens. There are over 30 JS files and searching for “favorites” yields too many results. I have tried adding my newview code everywhere I find “favorites” but with no luck. I get the error:

Message: ReferenceError: newview is not defined; Bindings value: attr: {href: newview}

So, how can I determine what populates {href: favorites} in the code below? I do know how knockout bindings work, I just can’t locate the code in the project. John Papa’s Code Camper project and this specific code aside, in general is there any tool that can tell where a binding is located in knockout js?

<li class="route-top"><a data-bind="attr: {href: favorites}">Favorites</a></li>

EDIT: for this case, I found the binding. I thought it did not work because a web page was stuck in cache. Still, if there is a tool or method to identify what code is bound to a property I would like to know about it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:51:15+00:00Added an answer on June 14, 2026 at 1:51 pm

    The section you are referring to are the navigation links for the views. Those are always visible in the shell, so I bound them to the vm.shell.js. The shell viewmodel has a property for the menuHashes, and those are actually defined in the config files (they could be database driven).

    On a broader scope, uou can tell which views are bound to which viewmodels in CodeCamper by looking at the binder.js module. This is where the knockout bindings are linked to the html/views.

                ko.applyBindings(vm.shell, getView(ids.shellTop));
                ko.applyBindings(vm.favorites, getView(ids.favorites));
                ko.applyBindings(vm.session, getView(ids.session));
                ko.applyBindings(vm.sessions, getView(ids.sessions));
                ko.applyBindings(vm.speaker, getView(ids.speaker));
                ko.applyBindings(vm.speakers, getView(ids.speakers));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to add a new view to a working nav controller app.
I'm trying to add a new ADO.Net Entity Data Model to an MVC project
I'm trying to add a new view, 'Graph', to my asp.net mvc3 under the
I am trying to add a new view with 5 buttons to a cell
Just ran into this very frustrating problem when trying to add a new view,
ok so im trying to add a button/view to a new activity other than
Im new to asp.net mvc. I'm trying add new model class but it got
I'm trying to add a new nova-compute node (KUubuntu 12.04) to my single node
I am trying to add a new record to my internal table and this
I am trying to add a new column into an SQLiteDatabase but every time

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.