Skip to content

Commit

Permalink
Set state params from stateParams property that comes in the route.
Browse files Browse the repository at this point in the history
  • Loading branch information
andybar2 committed Jun 15, 2016
1 parent d9e699d commit 3bc1f1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ var lnCms = angular.module('lnCms', [
}
};

if (route.stateParams) {
state.params = route.stateParams;
}

if (route.url == '/') {
//define default state for the empty url
var defState = JSON.parse(JSON.stringify(state));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ln-cms",
"version": "0.7.0",
"version": "0.7.1",
"author": "Moxie <[email protected]> (https://getmoxied.net)",
"description": "An angularjs module for loading content from a cms.",
"main": "index.js",
Expand Down

0 comments on commit 3bc1f1b

Please sign in to comment.