Add a blog to your site.
-
Routes added
- /blog
- /blog/tag/:tag
- /blog/:slug
-
Rest api methods used (loopback logic):
- Get all posts: /api/posts
- Get one post by slug: /api/posts/findOne?filter={'where':{'slug':'my-article1'}}
- Get posts by tag: /api/posts?filter={'where': {'tags.value': 'tag1'}}
- download the files
- Bower
- add
"jbm.angular-blog": "latest"
to yourbower.json
file then runbower install
OR runbower install jbm.angular-blog
- add
- Bower
- include the files in your app
blog.min.js
blog.min.css
- include the module in angular (i.e. in
app.js
) -jbm.angular-blog
- Add Provider for Api endpoints configuration
- Add style configuration
- Tags
- Sidebar
- Posts
- Add angular-translate
- ....