martinsonesson.se JsDOC

BlogPostController

new BlogPostController($scope, $log, wordpressService)

Controller for logic the blog post page
Parameters:
Name Type Description
$scope $scope See https://code.angularjs.org/1.2.26/docs/api/ng/type/$rootScope.Scope
$log $log See https://code.angularjs.org/1.2.26/docs/api/ng/service/$log
wordpressService services.WordpressService Service for handling calls to Wordpress for fetching blog data
Source:

Methods

getBlogPost(id)

Function for getting a blog post from Wordpress by given id
Parameters:
Name Type Description
id Obj The id for the blog post
Source:

setWatch()

Function for setting watchers
Source: