This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var path = require('path'); | |
| var webpack = require('webpack'); | |
| module.exports = { | |
| entry: { | |
| codebase: './js/codebase.js' | |
| }, | |
| output: { | |
| filename: '[name].js' | |
| }, | |
| resolve: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Simplified gulpfile | |
| var gulp = require('gulp'), | |
| watch = require('gulp-watch'), | |
| webpack = require('gulp-webpack-build'); | |
| var CONFIG = { | |
| paths: { | |
| build: 'build', | |
| input: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| 'use strict'; | |
| // var Backbone = require('Backbone'); | |
| // class HeaderView extends Backbone.View { | |
| // constructor() { | |
| // console.log('constructed') | |
| // } | |
| // } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Remember to inject $q! | |
| */ | |
| ngModule.directive('usernameAvailableValidator', ['$http', '$q' function($http, $q) { | |
| return { | |
| require : 'ngModel', | |
| link : function($scope, element, attrs, ngModel) { | |
| ngModel.$asyncValidators.usernameAvailable = function(username) { | |
| /** | |
| * Create a new deffered object to use as the asyncValidator promise. |