-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO.js
81 lines (59 loc) · 1.56 KB
/
TODO.js
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
74
75
76
77
78
79
80
81
ad_accounts
id
fb_account_id
fb_amount_spent
fb_daily_spent_limit
fb_currency
fb_name(bywa puste)
fb_business_name
fb_timezone_name
fb_timezone_offset_hours_utc
advertisers
id
name
$scope.accounts = "pierwsze";
angular.element($0).scope().accounts
alert($scope.accounts.ad_accounts[0]);
it('should jsonify filtered objects', function () {
expect(element(by.binding("{'namea:vaalue'}")).getText()).toMatch(/\{\n "name": ?"value"\n}/);
});
SELECT av.id, count(av.id)
FROM falshpoint.advertisers as av
INNER JOIN falshpoint.facebook_accounts as fa
ON av.id = fa.advertiser_id
WHERE
GROUP BY
av.id
HAVING COUNT(av.id) > 1
________________________
GROUP BY
av.id
falshpoint.advertisers as av
falshpoint.facebook_accounts as fa
<Focus on input>
http://stackoverflow.com/questions/14833326/how-to-set-focus-on-input-field
Original answer for 2., using an isolate scope:
<button class="btn" ng-click="showForm=true; focusInput=true">show form and
focus input</button>
<div ng-show="showForm">
<input type="text" focus-me="focusInput">
<button class="btn" ng-click="showForm=false">hide form</button>
</div>
app.directive('focusMe', function($timeout) {
return {
scope: { trigger: '=focusMe' },
link: function(scope, element) {
scope.$watch('trigger', function(value) {
if(value === true) {
//console.log('trigger',value);
//$timeout(function() {
element[0].focus();
scope.trigger = false;
//});
}
});
}
};
});
Plunker -> http://plnkr.co/edit/gmaQCl?p=preview
</focus on input>