angular-fullstack generated code upgrade with Babel 6

Install  Babel 6 related packages: npm install –save-dev babel-register npm install –save-dev babel-plugin-add-module-exports npm uninstall –save-dev babel-core npm install –save-dev babel-core npm install babel-preset-es2015 Create .babelrc file: vi .babelrc { “presets”: [“es2015”], “plugins”: [“babel-plugin-add-module-exports”] } Chanage server/index.js file: vi server/index.js if (env === ‘development’ || env === ‘test’) { // Register the Babel require hook…

Read More

grunt test:e2e Fix Error: No selenium server jar found at the specified location

yoman angular-fullstack generator 에서 생성한 프로젝트에서 grunt test:e2e 테스트를 실행 시 발생하는 에러 해결책 grunt test:e2e Fix Error: No selenium server jar found at the specified location (../node_modules/protractor/selenium/selenium-server-standalone-2.47.1.jar). run, ./node_modules/protractor/bin/webdriver-manager update ref. http://hisabimbola.blogspot.ch/2015/03/fix-error-no-selenium-server-jar-found.html

Read More

How to use angular-fullstack Modal service

Angular Fullstack – delete confirmation modal example Angular Fullstack – Modal Service     admin.controller.es6: ‘use strict’; (function() { class AdminController { constructor(User, Modal) { // Use the User $resource to fetch all users this.users = User.query(); // Our callback function is called if/when the delete modal is confirmed this.delete = Modal.confirm.delete(user => { user.$remove();…

Read More