Refine recently added components

This commit is contained in:
gconsidine
2017-05-04 16:58:01 -04:00
parent 2509c573a5
commit f741470365
25 changed files with 211 additions and 165 deletions

View File

@@ -0,0 +1,5 @@
import PathService from './path.service';
angular
.module('at.lib', [])
.factory('PathService', PathService);

View File

@@ -0,0 +1,16 @@
function getPartialPath (path) {
return `/static/partials/${path}.partial.html`;
}
function getViewPath (path) {
return `/static/views/${path}.view.html`;
}
function PathService () {
return {
getPartialPath,
getViewPath
};
}
export default PathService;