(Full description and list of commands at - https://npmjs.org/doc/index.html)
##List of less common (however useful) NPM commands
######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| <html> | |
| <head> | |
| <title>Scroll to bottom Detection</title> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| var count=0; | |
| $(document).ready(function(){ | |
| SetValues(); | |
| $(window).scroll(function(){ | |
| //Will check if the user has reached bottom of a PAGE |
| //EditorTEmplated in Shred FOlder | |
| @{ | |
| string name = ViewData.TemplateInfo.HtmlFieldPrefix; | |
| string id = name.Replace(".", "_"); | |
| string value = ""; | |
| if (Model != null) { value = Model.ToShortDateString(); } | |
| } | |
| <input type="text" id="@id" class="txt" value="@value" /> | |
| <script type="text/ecmascript"> |
| <html ng-app > | |
| <head> | |
| <title>First Application</title> | |
| <!--<script type="text/javascript" src="jquery-1.10.2.js"></script>--> | |
| <script type="text/javascript" src="angular.min.js"></script> | |
| <script type="text/javascript"> | |
| function AlbumController($scope) { | |
| $scope.images = [ | |
| { "thumbnail": "img/1.png", "description": "Bootstrap MVC" }, | |
| { "thumbnail": "img/2.png", "description": "Happy Holiday" } |
| <!DOCTYPE html> | |
| <html ng-app> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Nested Controller</title> | |
| <script src="angular.min.js"></script> | |
| <script src="nestedScript.js"></script> | |
| </head> | |
| <body> |
| <!DOCTYPE html> | |
| <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Configuration and Run phases</title> | |
| <script src="angular.min.js"></script> | |
| <script type="text/javascript"> | |
| var PersonManager = function () { | |
| var fullNameSeparator = " "; |
| public class LibraryContext : DbContext | |
| { | |
| public LibraryContext() | |
| : base("name=DbConnectionString") | |
| { } | |
| public DbSet<Publisher> Publishers { get; set; } | |
| public DbSet<Book> Books { get; set; } | |
| protected override void OnModelCreating(DbModelBuilder modelBuilder) | |
| { |
| Controlling Text and appearance | |
| Visible visible: hasError | |
| Text text: message | |
| Html html: markup | |
| CSS css: { error: hasError, required: isRequired } | |
| Style style: { color: messageColor, backgroundColor: backColor } | |
| Attr attr: { title: itemDescription, id: itemId } | |
| Form Field Binding |
| <div id="body"> | |
| <section class="content-wrapper main-content clear-fix" data-bind="with: personList" style="margin-top: 30px;"> | |
| <table> | |
| <thead> | |
| <tr> | |
| <td>First Name</td> | |
| <td>Last Name</td> | |
| <td>Age</td> | |
| </tr> | |
| </thead> |
| // Node.js CheatSheet. | |
| // Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
| // Download: http://nodejs.org/download/ | |
| // More: http://nodejs.org/api/all.html | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
##List of less common (however useful) NPM commands
######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/: