- data.js
This commit is contained in:
1 parent
c090f7d933
commit
08840ef605
4 files changed
+3
-16
No files matched your search
@@ -40,7 +40,6 @@ import API from './services/api';
|
||||
import {routes} from './config';
|
||||
|
||||
let app = angular.module('hudozka', [
|
||||
'hudozhka.data',
|
||||
'ngRoute',
|
||||
'angulartics',
|
||||
'angulartics.google.analytics',
|
||||
@@ -97,7 +96,6 @@ app.run(($location, $rootScope, $http) => {
|
||||
PageGalleryAlbum,
|
||||
PageDocuments,
|
||||
AppController,
|
||||
DocumentsController,
|
||||
CopyrightController,
|
||||
ContactsController,
|
||||
Schedule,
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import template from '../../templates/components/page-documents.html';
|
||||
import {docs} from '../../models/document';
|
||||
|
||||
export default function (app) {
|
||||
app.component('pageDocuments', {
|
||||
template: template,
|
||||
controller: function(api, docs) {
|
||||
controller: function (api) {
|
||||
this.pageClass = 'page-documents';
|
||||
|
||||
this.documents = docs.docs;
|
||||
this.documents = docs;
|
||||
|
||||
api.document.awards()
|
||||
.success(data => {
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
/**
|
||||
* Created by tmshv on 06/11/14.
|
||||
*/
|
||||
|
||||
angular.module("hudozhka.data", [])
|
||||
.service("scheduleData", function () {
|
||||
return require("../models/schedule");
|
||||
})
|
||||
.service("docs", function () {
|
||||
return require("../models/document");
|
||||
});
|
||||
@@ -22,7 +22,6 @@
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.slick/1.5.7/slick.css"/>
|
||||
<script src="//cdn.jsdelivr.net/jquery.slick/1.5.7/slick.min.js"></script>
|
||||
|
||||
<script src="/data.js"></script>
|
||||
<script src="/app.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in new issue
Block a user