Tested under webpack-dev-server 1.7.0.
- Clone this gist
npm installnpm start- Visit http://localhost:8080 (or http://192.168.x.x:8080) on multiple devices
- Edit entry.js and hit save
| <code_scheme name="Airbnb"> | |
| <option name="RIGHT_MARGIN" value="100" /> | |
| <option name="HTML_ATTRIBUTE_WRAP" value="4" /> | |
| <option name="HTML_ELEMENTS_TO_INSERT_NEW_LINE_BEFORE" value="" /> | |
| <option name="HTML_ENFORCE_QUOTES" value="true" /> | |
| <DBN-PSQL> | |
| <case-options enabled="false"> | |
| <option name="KEYWORD_CASE" value="lower" /> | |
| <option name="FUNCTION_CASE" value="lower" /> | |
| <option name="PARAMETER_CASE" value="lower" /> |
Tested under webpack-dev-server 1.7.0.
npm installnpm start| angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) { | |
| $httpProvider.responseInterceptors.push([ | |
| '$q', '$templateCache', 'activeProfile', | |
| function($q, $templateCache, activeProfile) { | |
| // Keep track which HTML templates have already been modified. | |
| var modifiedTemplates = {}; | |
| // Tests if there are any keep/omit attributes. | |
| var HAS_FLAGS_EXP = /data-(keep|omit)/; |
| myApp.directive('ngFocus', function( $timeout ) { | |
| return function( scope, elem, attrs ) { | |
| scope.$watch(attrs.ngFocus, function( newval ) { | |
| if ( newval ) { | |
| $timeout(function() { | |
| elem[0].focus(); | |
| }, 0, false); | |
| } | |
| }); | |
| }; |
Everyone who's reading this, please leave your opinion/ideas/proposals as a comment for a better world!
Most of you guys read Josh' proposals to make components more reusable, I think. Now, reading through this proposals definitely gives a feeling that this is the right way. Anyways, If you haven't read it yet, you should.
So Josh shows us, how angular apps can be structured in a better and more reusable way. Reusability is a very important thing when it comes to software development. Actually the whole angularjs library follows a philosophy of reusability. Which is why you able to make things like:
Following the AngularJS PARIS meetup (25/2 à 19h à Paris with @sampaccoud @dzen @_kemar @tchack13 @vinz et @revolunet)
Here's our best AngularJS ressources : twitter, github, articles & blogs. Please comment and add your good stuff !
| var demoApp = angular.module('demoApp', ['ngResource'], function($locationProvider) { | |
| $locationProvider.hashPrefix(''); | |
| }); | |
| function MainCtrl($scope, Serv) { | |
| $scope.selectedItem = { | |
| value: 0, | |
| label: '' | |
| }; | |
| $scope.Wrapper = Serv; |
| public class ImportedFilePathResolver : IPathResolver | |
| { | |
| private string currentFileDirectory; | |
| private string currentFilePath; | |
| /// <summary> | |
| /// Initializes a new instance of the <see cref="ImportedFilePathResolver"/> class. | |
| /// </summary> | |
| /// <param name="currentFilePath">The path to the currently processed file.</param> | |
| public ImportedFilePathResolver(string currentFilePath) |