How to router with knockoutJS, javascript or jquery?

38
December 28, 2018, at 2:20 PM

I asked a question here. How to display text in loop with knockout js How to display text in loop with knockout js I want to add routing url like website.com/brandName/modelName or website.com/brandName-modelName

I tried with pager.js bul my array is nested so I couldn't did it.

<div data-bind="page: id: brandUrl">
 <div data-bind="page: id: modelUrl">
   <div data-bind="with: selectedModel">
     <ul data-bind="foreach: childItems">
      <li>
       <p data-bind="text: text"></p>
       <p data-bind="text: year"></p>
      </li>
     </ul>
    </div>
  </div>
</div>

How can do it?

READ ALSO
GraphQL: How nested to make schema?

GraphQL: How nested to make schema?

This past year I converted an application to use GraphqlIts been great so far, during the conversion I essentially ported all my services that backed my REST endpoints to back grapqhl queries and mutations

28
How do I encrypt a string variable using Fernet encryption

How do I encrypt a string variable using Fernet encryption

Hello I am trying to encrypt this variable using the Fernet method from the cryptogrphy module

25
Css Won&#39;t Connect To Html [on hold]

Css Won't Connect To Html [on hold]

I Am Getting The Same Thing, But Neither Of The Top Two Suggestions Worked: Html-

20
Java: Different byte[] has same string in utf8

Java: Different byte[] has same string in utf8

There are two different byte arrayWhen i get String from byte[]

21