SoftwareSandbox / FiAngulartje

Learning project in which we try to make our sandwich ordering site better. This is the UI project, built with AngularJS.
Apache License 2.0
3 stars 9 forks source link

Opening Hours #13

Closed Sch3lp closed 9 years ago

Sch3lp commented 9 years ago

A reusable component/directive to show the opening hours.

Use microdata attributes so google can parse it in their results: <li><data itemprop="openingHours" datedata="Mo 09:00-17:30"><span class="day">Monday:</span> <span class="hours">09:00-17:30</span></data></li>

Get openinghours from a Resource /v1/openinghours that returns JSON:

[
{
    "day":"1",
    "hours":[{"from":"09:00","until":"12:00"},{"from":"12:30","until":"17:00"}]
},
{
    "day":"2",
    "hours":[{"from":"09:30","until":"12:30"}]
}
]

1 = monday. Because we're living in fucking Europe.