I am trying to learn ember routes and created a very simple example app. My application template has this code-
{{#link-to "testpage"}}Go to test page.{{/link-to}}
{{outlet}}
The testpage was created via ember-cli
ember g resource testpage
The testpage template contains simple text "This is a testpage". When I run this app, the main page correctly shows a hyperlink to testpage and upon clicking, the browser URL also changes to localhost:4200/testpage but the testpage text is shown alongwith "Go to test page" hyperlink. Shouldn't it go to a new page?
Also, it might help to note that I am using pod structure in my app.
Aucun commentaire:
Enregistrer un commentaire