<ul class="seasons">
<li class="season" ng-repeat="season in seasons">
Season {{season.seasonNumber}}
</li>
</ul>
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(){ | |
| if (typeof self === 'undefined' || !self.Prism || !self.document || !document.querySelector) { | |
| return; | |
| } | |
| function $$(expr, con) { | |
| return Array.prototype.slice.call((con || document).querySelectorAll(expr)); | |
| } |
show
More Info- Inside vs outside sales numbers
95%/ Monthretention (down from 99%)
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
| "use strict"; | |
| var canReflect = require("can-reflect"); | |
| var canSymbol = require("can-symbol"); | |
| var namespace = require("can-namespace"); | |
| var queues = require("can-queues"); | |
| var canAssign = require("can-assign"); | |
| //!steal-remove-start | |
| if(process.env.NODE_ENV !== 'production') { | |
| var canLog = require("can-log/dev/dev"); |
CanJS 5.0 (https://www.bitovi.com/blog/canjs-5) is out and it makes building CRUD apps easier than should be possible. In this talk, we'll learn the basics of CanJS and show how to build an app that Creates, Reads, Updates, and Deletes (CRUD) data. The app will handle all the things folks normally forget too. Things like server errors, slow loading, and disabling buttons to prevent repeat form submissions. Getting in the CRUD will never feel so good.
CRUD is all around us
The CodePen we are building. It has:
- The ability to Create, Read, Update, and Delete data.
- Most of the important mechanics work.
- Setup
- Log when a property or properties change with .log
- Break when a property changes
- Understand what caused a particular thing to happen with logStack
- Understand what caused a particular thing to happen with logStack's reasonLog
- Logging the state of the ViewModel
- Understanding what caused something to change with components and logStack
- Logging the scope
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 canViewParse = require("can-view-parser"); | |
| var someSortOfEach = /\{\{#\s*each\(/ | |
| var eachMatch = /\{\{#\s*each\(\s*([\w\.\(\)]+)\s*\)\s*\}\}/; | |
| function processStache(source) { | |
| canViewParse(source, { | |
| start: function(){}, | |
| end: function(){}, | |
| close: function(){}, |