- Use one-time-bind on expressions ( {{::value}} )
- Replace
$scope.$apply()with$scope.$digest()whenever possible - Move filters to controllers
To get the total watchers on the current page, you can run this script on the browser console:
$scope.$apply() with $scope.$digest() whenever possibleTo get the total watchers on the current page, you can run this script on the browser console:
| /* https://github.com/suitcss/components-flex-embed/blob/master/lib/flex-embed.css */ | |
| .flex-embed { | |
| display: block; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .flex-embed-inner { | |
| display: block; |
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
| /** | |
| * Hacks to detect Bootstrap version (2 vs. 3) from JavaScript. | |
| * Does some detection of stringified functions - should be safe against most minification, but please test! | |
| * | |
| * Example: | |
| * ```js | |
| * bootstrapVersionDetect.isVersion('2', $); | |
| * ``` | |
| * | |
| * May not be necessary soon for Bootstrap 3+, @see https://github.com/twbs/bootstrap/pull/13578 |
Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.
Raw Attribute Strings
<div my-directive="some string" another-param="another string"></div>