File tree 6 files changed +23
-3
lines changed
6 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ jquery@1.11.3_2
19
19
json@1.0.3
20
20
launch-screen@1.0.2
21
21
livedata@1.0.13
22
- local-test:nicolaslopezj:router-layer@0.0.6
22
+ local-test:nicolaslopezj:router-layer@0.0.7
23
23
logging@1.0.7
24
24
meteor@1.1.6
25
25
meteor-platform@1.2.2
26
26
minifiers@1.1.5
27
27
minimongo@1.0.8
28
28
mobile-status-bar@1.0.3
29
29
mongo@1.1.0
30
- nicolaslopezj:router-layer@0.0.6
30
+ nicolaslopezj:router-layer@0.0.7
31
31
observe-sequence@1.0.6
32
32
ordered-dict@1.0.3
33
33
random@1.0.3
Original file line number Diff line number Diff line change @@ -101,3 +101,7 @@ Returns a parameter of the url
101
101
** Parameters**
102
102
103
103
** queryStringKey** : ` String ` , The name of the parameter
104
+
105
+ #### RouterLayer.getPath()
106
+
107
+ Returns the path of the current route
Original file line number Diff line number Diff line change @@ -73,4 +73,8 @@ if (RouterLayer.router == 'flow-router') {
73
73
RouterLayer . _getQueryParam = function ( queryStringKey ) {
74
74
return this . flowRouter . getQueryParam ( queryStringKey ) ;
75
75
}
76
+
77
+ RouterLayer . _getPath = function ( ) {
78
+ return this . flowRouter . current ( ) . path ;
79
+ }
76
80
}
Original file line number Diff line number Diff line change @@ -60,4 +60,8 @@ if (RouterLayer.router == 'iron-router') {
60
60
RouterLayer . _getQueryParam = function ( queryStringKey ) {
61
61
return this . ironRouter . current ( ) . params . query [ queryStringKey ] ;
62
62
}
63
+
64
+ RouterLayer . _getPath = function ( ) {
65
+ return this . ironRouter . current ( ) . route . path ( )
66
+ }
63
67
}
Original file line number Diff line number Diff line change @@ -125,3 +125,11 @@ RouterLayer.getQueryParam = function(queryStringKey) {
125
125
126
126
return this . _getQueryParam ( queryStringKey ) ;
127
127
}
128
+
129
+ /**
130
+ * Returns the path of the current route
131
+ * @return {String } The path of the current route
132
+ */
133
+ RouterLayer . getPath = function ( ) {
134
+ return this . _getPath ( ) ;
135
+ }
Original file line number Diff line number Diff line change 1
1
Package . describe ( {
2
2
name : 'nicolaslopezj:router-layer' ,
3
3
summary : 'A layer for Meteor Routers' ,
4
- version : '0.0.6 ' ,
4
+ version : '0.0.7 ' ,
5
5
git : 'https://github.com/nicolaslopezj/meteor-router-layer'
6
6
} ) ;
7
7
You can’t perform that action at this time.
0 commit comments