Thursday, 15 January 2015

dart - AngularDart View is not properly routing -


I'm new to dart and I'm having some problems with my view / router.

Liberty / Routing / booking_serviser / router in router dier: Zero booking substrator installer (Router Router, Ruativfitter view) {Configure View ({' Reservations': NGRUTU (Path: '/ Reservations', see:' View / Home Administration_ ')}); } BookingServiceModule: {Bind (ReservationHome); Tie (TabMenu); Tie (Root Initializer, Too Well: BookingServicesEvleiverer); Tie (NGROttingWebspost, to Well: New NGRoutingUspectState.VALU (false)); }} Zero main () {Logger.root.level = Level.FINEST; Logger.root.onRecord.listen ((logarcorder r) {print (r.message);}); ApplicationFactory (). AddModule (New BookingServiceModule ()). Run (); }

Main HTML Bookkeeping service.html:

  & lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Meta name = "viewport" content = "width = device-width, initial-scale = 1" & gt; & Lt; Title & gt; BookingService & lt; / Title & gt; & Lt; Link rel = "stylesheet" href = "bookingservice.css" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Tab menu ng-cloak & gt; & Lt; / Tab-menu & gt; & Lt; Div & gt; & Lt; Section & gt; & Lt; Ng-view & gt; & Lt; / Ng-view & gt; & Lt; / Section & gt; & Lt; / Div & gt; & Lt; Script type = "app / dirts" src = "bookingAgerDear" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "packages / browser / dart.js" & gt; & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

and /lib/component/tab_menu.html:

  & lt; Link rel = "stylesheet" href = "tab_menu.css" & gt; & Lt; Div & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "# / reservation" & gt; Click on & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt;  

And finally I'm trying to route to web / scene / homeReservation.html:

  And lt; Div & gt; & Lt; H1>! Hello & lt; / H1> & Lt; / Div & gt;  

When I click on the link to route homeReservation.html, then I need to route it to the URL path:

However, this URL Actually the root is:

which basically withdraws it in the same scene and is not showing my house. Reservation.html

What can I remember but any tips / tips / advice?

Thank you!

This is working by changing the name of my index to bookingservice.html index.html. Certainly not that I should be index.html to work properly for this. If someone has a reason behind this, please do not hesitate to comment blank. I will dig some more for this reason


No comments:

Post a Comment