'use strict'; /** * @ngdoc directive * @name ng.directive:ngInit * @restrict AC * * @description * The `ngInit` directive allows you to evaluate an expression in the * current scope. * *
* The only appropriate use of `ngInit` is for aliasing special properties of * {@link api/ng.directive:ngRepeat `ngRepeat`}, as seen in the demo below. Besides this case, you * should use {@link guide/controller controllers} rather than `ngInit` * to initialize values on a scope. *
*
* **Note**: If you have assignment in `ngInit` along with {@link api/ng.$filter `$filter`}, make * sure you have parenthesis for correct precedence: *
 *   
*
*
* * @priority 450 * * @element ANY * @param {expression} ngInit {@link guide/expression Expression} to eval. * * @example
list[ {{outerIndex}} ][ {{innerIndex}} ] = {{value}};
it('should alias index positions', function() { expect(element('.example-init').text()) .toBe('list[ 0 ][ 0 ] = a;' + 'list[ 0 ][ 1 ] = b;' + 'list[ 1 ][ 0 ] = c;' + 'list[ 1 ][ 1 ] = d;'); });
*/ var ngInitDirective = ngDirective({ priority: 450, compile: function() { return { pre: function(scope, element, attrs) { scope.$eval(attrs.ngInit); } }; } }); option value='update-ttl'>update-ttl PubNub Python-based APIs for core Python, Twisted, and Tornado
aboutsummaryrefslogtreecommitdiffstats
path: root/python-tornado/tests/unit-tests.py
blob: fdaa194afa467fe81ac75c6ab398650e6dbb286f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73