@/all if you missed the last news about gulp-angular
https://github.com/Swiip/generator-gulp-angular/releases/tag/v1.1.1
I recommend you to switch on FountainJS.
We just achieve a full test coverage
Hey guys, when I run the local serve command everything works fine. But when I build, my two layout routes files are returning 404:
This is what calls them in my route file:
$stateProvider
.state('dashboard', {
// abstract: true,
views: {
layout: {
templateUrl: 'app/layouts/dashboard.html',
}
},
data: {
authorizedRoles: true
}
})
.state('full', {
// abstract: true,
views: {
layout: {
templateUrl: 'app/layouts/fullpage.html',
}
}
})
any ideas?
Hi all, can anybody tell me what am I doing wrong?
I'm trying to write test for this
class Test {
public $inject = ['$cookies']
constructor(public $cookies){
}
getData() {
return 1 + 2;
}
}
export default Test;
My test.spec
/// <reference path="../../typings/index.d.ts" />
import * as angular from 'angular';
import 'angular-mocks';
import Test from './test';
describe('Test service', () => {
beforeEach(() => {
angular
.module('Test', [])
.service('Test', Test);
angular.mock.module('Test');
});
it('should', angular.mock.inject((Test: Test) => {
expect(Test.getData()).toEqual(3);
}));
});
it says error starts with
PhantomJS 2.1.1 (Windows 8 0.0.0) Test service should FAILED
inject
getService
getService
injectionArgs
instantiate
invoke
enforcedReturnValue
invoke
getService
injectionArgs
invoke
workFn
eval code
eval@[native code]
...
gulp.task('usemin',['jshint'], function () {
return gulp.src('./app/*/.html')
.pipe(usemin({
css:[minifycss(),rev()],
js: [ngannotate(),uglify(),rev()]
}))
.pipe(gulp.dest('dist/'));
});
Anybody???