This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.all('/api/*',function(req,res){ | |
| try{ | |
| var controller = toUpperCase(req.query['controller']), | |
| action = toUpperCase(req.query['action']), | |
| method = (req.query['method']) ? req.query['method'].toLowerCase():'get'; | |
| var currentController = require('./routes/'+controller+'.js'); | |
| app[method].call(this,'/',currentController[action]); | |
| }catch(e){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function HeaderController($scope, $location, Global) { | |
| $scope.global = Global; | |
| $scope.menu = [{ | |
| "title": "Tasks", | |
| "link": "tasks" | |
| }, { | |
| "title": "Deals", | |
| "link": "deals" | |
| }]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var seo = require('mean-seo') | |
| app.use(seo()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var seo = require('mean-seo'); | |
| app.use(seo({ | |
| cacheClient: 'disk', // Can be 'disk' or 'redis' | |
| cacheDuration: 2 * 60 * 60 * 24 * 1000, // In milliseconds for disk cache | |
| })); | |
| // app.use(app.router) will be below this line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm install mean-seo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @mixin angular-animate-hide($duration,$property,$easing,$min-val,$max-val){ | |
| transition :$duration $property $easing; | |
| &.ng-hide-add,&.ng-hide-remove{ | |
| display: block !important; | |
| #{$property}: $min-val; | |
| } | |
| &.ng-hide-remove.ng-hide-remove-active{ | |
| #{$property}: $max-val; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../core-scaffold/core-scaffold.html"> | |
| <link rel="import" href="../core-header-panel/core-header-panel.html"> | |
| <link rel="import" href="../core-menu/core-menu.html"> | |
| <link rel="import" href="../core-item/core-item.html"> | |
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-toolbar/core-toolbar.html"> | |
| <link rel="import" href="../core-menu/core-submenu.html"> | |
| <polymer-element name="my-element"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../components/polymer/polymer.html"> | |
| <polymer-element name="name-tag"> | |
| <template> | |
| <style> | |
| </style> | |
| <b>{{ owner }}</b> | |
| </template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../components/polymer/polymer.html"> | |
| <polymer-element name="name-tag"> | |
| <template> | |
| This is <b>{{owner}}</b>'s name-tag element. | |
| </template> | |
| <script> | |
| Polymer('name-tag', { | |
| // initialize the element's model |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../components/polymer/polymer.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; |
OlderNewer