find location


SUBMITTED BY: Guest

DATE: Dec. 11, 2013, 7:12 a.m.

FORMAT: Text only

SIZE: 702 Bytes

HITS: 836

  1. <h1 data-bind="text: city"> </h1>
  2. <p data-bind="with: coords">
  3. Latitude: <span data-bind="text: latitude"> </span>,
  4. Longitude: <span data-bind="text: longitude"> </span>
  5. </p>
  6. <script type="text/javascript">
  7. ko.applyBindings({
  8. city: "London",
  9. coords: {
  10. latitude: 51.5001524,
  11. longitude: -0.1262362
  12. }
  13. });
  14. </script>
  15. <h1>{{city}}</h1>
  16. <p ng-repeat="c in [coords.or.possibly.deeper.in.tree]">
  17. Latitude: {{c.latitude}},
  18. Longitude: {{c.longitude}}
  19. </p>

comments powered by Disqus