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
| <!DOCTYPE html> | |
| <html ng-app="angularjs-starter"> | |
| <head lang="en"> | |
| <meta charset="utf-8"> | |
| <title>Custom Plunker</title> | |
| <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script> | |
| <link rel="stylesheet" href="style.css"> | |
| <script> | |
| document.write('<base href="' + document.location + '" />'); |
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
| http://jsfiddle.net/fauverism/bw0c9moa/ |
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
| You need to run the following command in the Terminal to refresh the executable-hooks to the latest version. That should take care of the issue. | |
| sudo gem install --user-install executable-hooks |
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
| <input type='email' | |
| name='email' | |
| ng-model='contact.email' | |
| placeholder='[email protected]' | |
| ng-required='!contact.phone' /> | |
| <input type='text' | |
| ng-model='contact.phone' | |
| placeholder='(xxx) xxx-xxxx' | |
| ng-required='!contact.email' /> |
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
| /* https://scotch.io/quick-tips/default-sizes-for-twitter-bootstraps-media-queries */ | |
| /* Large Devices, Wide Screens */ | |
| @media only screen and (max-width : 1200px) {} | |
| @media only screen and (max-width : 1199px) {} | |
| /* Medium Devices, Desktops */ | |
| @media only screen and (max-width : 992px) {} | |
| @media only screen and (max-width : 991px) {} |
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
| git branch --merged develop | grep -v "\* develop" | xargs -n 1 git branch -d |
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
| <input type="text" ng-bind-attrs="{placeholder: somePropertyOfTheScope, tabindex: anotherPropertyOfTheScope}" > |
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
| angular.module('app') | |
| .directive('input', function ($parse) { | |
| return { | |
| restrict: 'E', | |
| require: '?ngModel', | |
| link: function (scope, element, attrs) { | |
| if (attrs.ngModel && attrs.value) { | |
| $parse(attrs.ngModel).assign(scope, attrs.value); | |
| } | |
| } |