Code Monkey home page Code Monkey logo

sample's Introduction

MEANauthapp

Complete MEAN stack application with authentication using json web tokens

Version

1.0.0

Usage

Installation

Install the dependencies

$ npm install

Run app

$ npm start

sample's People

Contributors

chvenkat668 avatar

Watchers

James Cloos avatar  avatar

sample's Issues

test

<script src="angular.js"></script>
Work Type </select> </div> <p class="ferror" ng-if="ferror">All fields are mandatory</p> <div class="f-repeat" ng-repeat="x in record track by $index"> <table class="f-table"> <tr> <td> <div class="field"> <label> Bert:</label> <input type="text" ng-model="x.bert"/> </div> </td> <td> <div class="field"> <label> CIID:</label> <input type="text" ng-model="x.ciid"/> </div> </td> <td> <div class="field"> <label> CLO:</label> <input type="text" ng-model="x.clo"/> </div> </td> <td> <div class="field"> <label> Interface Type:</label> <select ng-model="x.itypeslected" ng-options="y for y in x.itype"> </select> </div> </td> </tr> </table> <table class="f-table"> <tr> <td> <div class="field"> <label> A Side Router A</label> <input type="text" ng-model="x.asideroutera"/> </div> </td> <td> <div class="field"> <label>physical interface a</label> <input type="text" ng-model="x.physicalinterfacea"/> </div> </td> <td> <div class="field"> <label> logical interfface a</label> <input type="text" ng-model="x.logicalinterffacea"/> </div> </td> </tr> <tr> <td> <div class="field"> <label> z side router z</label> <input type="text" ng-model="x.zsiderouterz"/> </div> </td> <td> <div class="field"> <label> physical interface z</label> <input type="text" ng-model="x.physicalinterfacez"/> </div> </td> <td> <div class="field"> <label> logical interfface z</label> <input type="text" ng-model="x.logicalinterffacez"/> </div> </td> </tr> </table> </div> <button class="f-submit" ng-click="fsubmit()">Submit</button> <button class="f-submit" ng-click="fdelete()">Delete</button> <button class="f-submit" ng-click="fadd()">Add</button> <script> var app = angular.module('myApp', []); app.controller('customersCtrl', function($scope, $http) { $scope.ferror=false; $scope.emptyRecord= { bert:'', ciid:'', clo:'', itypeslected:'', itype:[ "Circuit Bundle", "Circuit Upgrade", "Circuit Migration", "Rearrangement", "No Submission", ], asideroutera:'', physicalinterfacea:'', logicalinterffacea:'', zsiderouterz:'', physicalinterfacez:'', logicalinterffacez:'', }; $scope.worktype=[ "Circuit Bundle", "Circuit Upgrade", "Circuit Migration", "Rearrangement", "No Submission", ] $scope.record =[ { bert:'', ciid:'', clo:'', itypeslected:'', itype:[ "Circuit Bundle", "Circuit Upgrade", "Circuit Migration", "Rearrangement", "No Submission", ], asideroutera:'', physicalinterfacea:'', logicalinterffacea:'', zsiderouterz:'', physicalinterfacez:'', logicalinterffacez:'', } ] $scope.length = $scope.record.length; $scope.worktypeChanged = function(){ console.log($scope.worktypeSelected); $scope.record.forEach(function(e){ e.itypeslected = $scope.worktypeSelected; }) } $scope.fsubmit = function(){ $scope.ferror=false; console.log($scope.record); var keys = Object.keys($scope.record[0]); var keysLength = keys.length; var index = 0; console.log(keys); console.log(keysLength); $scope.record.forEach(function(e){ keys.forEach(function(x){ console.log("--"+e[x]); if(e[x]==''){ $scope.ferror=true; } }) }) } $scope.fdelete = function(){ if($scope.record.length>1){ $scope.record.pop(); } } $scope.fadd = function(){ $scope.record.push($scope.emptyRecord) $scope.record[$scope.length].itypeslected = $scope.worktypeSelected; $scope.length++; } }); </script>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.