Skip to content

Instantly share code, notes, and snippets.

View krishnamurthypradeep's full-sized avatar
💭
Demo For DBS

krishnamurthypradeep

💭
Demo For DBS
View GitHub Profile
.factory('TokenHandler', function() {
var tokenHandler = {};
var token = "none";
tokenHandler.set = function( newToken ) {
token = newToken;
};
tokenHandler.get = function() {
return token;
<div id="search-row0" class="row" ng-repeat="element in controller.search.list">
<div class="col-sm-4">
<select id="field0" class="form-control" ng-model="controller.search.list[element.index].name" required>
<option ng-repeat="field in controller.search.fields" ng-selected="field.name === 'ID'" value="{{field.value}}">{{field.name}}</option>
</select>
</div>
<div class="col-sm-4">
<select id="criteria0"
class="form-control"
ng-model="search.list[element.index].criteria"
var application_root = __dirname,
express = require("express"),
path = require("path"),
mongoose = require('mongoose');
var app = express.createServer();
// database
mongoose.connect('mongodb://localhost/ecomm_database');