UNPKG
togg
Version:
latest (0.6.1)
0.6.1
0.6.0
0.5.0
0.4.2
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
Angular UI directive for toggling classes and beyond
github.com/ryanve/togg
ryanve/togg
togg
/
test.js
8 lines
(7 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
typeof
document
==
'undefined'
?
require
(
'open'
)(
'index.html'
) :
this
.
angular
.
module
(
'test'
, [
'togg'
]).
controller
(
'test'
, [
'$document'
,
function
(
$document
) { $document.
on
(
'bubble'
,
function
(
) { $(
'.js-timestamp'
).
text
(
Date
.
now
()) }) }]);