Skip to content

Instantly share code, notes, and snippets.

upstream api {
server librecms-api.jit.su:80;
}
server {
listen 0.0.0.0:80 default deferred;
server_name librecms;
access_log /var/log/nginx/librecms.access.log;
error_log /var/log/nginx/librecms.error.log;
upstream api {
server 127.0.0.1:3030;
}
server {
listen 0.0.0.0:80 default deferred;
server_name librecms;
access_log /var/log/nginx/librecms.access.log;
error_log /var/log/nginx/librecms.error.log;
'use strict';
angular.module('librecmsApp')
.controller('ContentCtrl', function ($state, $scope) {
$scope.itemType = $state.current.data.itemType;
});
'use strict';
describe('Controller: ContentCtrl', function () {
// load the controller's module
beforeEach(module('librecmsApp'));
// load controller widgets/views/partials
var views = [
'views/course.item.list.html',
module.exports = function(config) {
'use strict';
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'app/bower_components/angular/angular.js',
'app/bower_components/angular-mocks/angular-mocks.js',
'app/scripts/*.js',
'app/scripts/**/*.js',
'use strict';
describe('Controller: CourseCtrl', function () {
// load the controller's module
beforeEach(module('myApp'));
// load controller widgets/views/partials
var views = [
'views/course.html',
'use strict';
describe('Controller: CourseCtrl', function () {
// load the controller's module
beforeEach(module('myApp'));
var CourseCtrl,
scope;
'use strict';
describe('Controller: ContentCtrl', function () {
// load the controller's module
beforeEach(module('myApp'));
var ContentCtrl, scope, state, q;
// Initialize the controller and a mock scope
function sayHello() {
console.log('hello ');
}
process.nextTick(sayHello);
console.log('world!');
user.js:
'use strict';
angular.module('myApp')
.controller('UserCtrl', function ($scope, Restangular) {
$scope.users = Restangular.all('user').getList();
});