随笔分类 -  Angular-Scaled Web

摘要:Require those libs:var jade = require('gulp-jade'),browserify = require('gulp-browserify'),uglify = require('gulp-uglify'),gulpif = require('gulp-if')... 阅读全文
posted @ 2015-07-31 13:29 Zhentiw 编辑
摘要:Copy file:gulp.task('copy-image', function() { gulp.src('./public/images/**/*').pipe(gulp.dest('./build/assets/images'));});gulp.task('copy-app-js'... 阅读全文
posted @ 2015-07-29 19:51 Zhentiw 编辑
摘要:In this lesson, we will learn how tasks work in Gulp. We will talk about how to define a task and what each parameter in the definition does. We will ... 阅读全文
posted @ 2015-07-29 19:22 Zhentiw 编辑
摘要:We will have accomplished a few goals, the first goal being that changes to our source files will automatically be detected and a new build will be ki... 阅读全文
posted @ 2015-07-29 17:18 Zhentiw 编辑
摘要:We'velooked at lazy loading with ocLazyLoadpreviously, but what if we are using ui-router and want to lazy load modules when we change states?angular.... 阅读全文
posted @ 2015-01-04 05:48 Zhentiw 编辑
摘要:With the ocLazyLoad you can load AngularJS modules on demand. This is very handy for runtime loading of Angular modules in large applications. Simple 阅读全文
posted @ 2015-01-04 05:42 Zhentiw 编辑
摘要:Learn how to manually control how asynchronous requests are handled with the use of promises. Because $http is built to work with promises, we saw a f... 阅读全文
posted @ 2014-12-26 16:34 Zhentiw 编辑
摘要:Using the $http service to make requests to remote servers.categories-model.js:angular.module('eggly.models.categories', []) .service('CategoriesMo... 阅读全文
posted @ 2014-12-26 03:11 Zhentiw 编辑
摘要:In the previous code, both categories and bookmarks are binded to $rootscope, or let says the same scope.eggly-app.js:angular.module('Eggly', [ 'ui... 阅读全文
posted @ 2014-12-11 17:39 Zhentiw 编辑
摘要:There are two ways to naviagting between state: 1. Using $state service, $state.go() 2. Using ui-serf diretive $state.go Inject $state service. .contr 阅读全文
posted @ 2014-11-09 21:41 Zhentiw 编辑
摘要:When using ui-route, we want to pass the information with the url.Example:angular.module('categories.bookmarks', [ 'categories.bookmarks.create', ... 阅读全文
posted @ 2014-11-09 18:38 Zhentiw 编辑
摘要:In the previous post, we use $stateProvider deriect to root url and using MainCtrl, categories.tmpl.html. .config(function($stateProvider){ ... 阅读全文
posted @ 2014-11-04 21:31 Zhentiw 编辑
摘要:1. Install ui-route, include js file in html and add dependence in js file.bower install angular-ui-routerangular.module('Eggly', [ 'ui.router', ... 阅读全文
posted @ 2014-11-04 20:36 Zhentiw 编辑
摘要:Common models will be a sub models for category and bookmarks. Because they are used everywhere.For bookmarks edit and create, all they need is a comm... 阅读全文
posted @ 2014-11-03 18:25 Zhentiw 编辑
摘要:We build a project according to its features or based on simple MVC structure. Put all controller into one folder and factory into another folder is h... 阅读全文
posted @ 2014-11-03 18:03 Zhentiw 编辑

点击右上角即可分享
微信分享提示