This demonstrates using the prefix and postfix formatting with form elements for a nice way to validate fields in AngularJS
A Pen by Sean Patterson on CodePen.
| myApp.controller('NavBarCtrl', function ($scope) | |
| { | |
| $scope.tileIsVisible = false; | |
| }); |
| <a ng-click="tileIsVisible = !tileIsVisible">WP8 Tile</a> |
This demonstrates using the prefix and postfix formatting with form elements for a nice way to validate fields in AngularJS
A Pen by Sean Patterson on CodePen.
| var gulp = require('gulp'), | |
| rimraf = require('rimraf'), | |
| runSequence = require('run-sequence'), | |
| frontMatter = require('gulp-front-matter'), | |
| autoprefixer = require('gulp-autoprefixer'), | |
| sass = require('gulp-ruby-sass'), | |
| uglify = require('gulp-uglify'), | |
| concat = require('gulp-concat'), | |
| connect = require('gulp-connect'), | |
| path = require('path'), |
| angular.module('application') | |
| .controller('NewsController', ['$scope', '$stateParams', '$state', '$http', '$location', 'AuthService', function ($scope, $stateParams, $state, $http, $location, authService) { | |
| // Greg Added | |
| $scope.authentication = authService.authentication; | |
| if (authService.authentication.isAuth == true) { | |
| alert("Auth") | |
| } | |
| else { | |
| $location.path('/signup'); |
| <div runat="server" class="sf_cols customClass fancy-layout"> | |
| <div runat="server" class="sf_colsOut CustomClass arrow_box" data-placeholder-label="Title"> | |
| <h1 runat="server" class="sf_colsIn"></h1> | |
| </div> | |
| <div runat="server" class="sf_colsOut CustomClass" data-placeholder-label="Content"> | |
| <div runat="server" class="sf_colsIn"> | |
| </div> | |
| </div> | |
| </div> |
| .fancy-layout { | |
| background-color: bisque; | |
| } | |
| .test-layout li:before | |
| { | |
| content: '✔'; | |
| color: green; | |
| margin-left: -1em; margin-right: .100em; | |
| } |
| <%@ Control Language="C#" %> | |
| <%@ Import Namespace="Telerik.OpenAccess" %> | |
| <%@ Import namespace="Telerik.Sitefinity.GenericContent.Model" %> | |
| <%@ Import Namespace="Telerik.Sitefinity.Model" %> | |
| <%@ Import namespace="Telerik.Sitefinity.Modules.GenericContent" %> | |
| <%@ Import Namespace="Telerik.Sitefinity.Taxonomies" %> | |
| <%@ Import Namespace="Telerik.Sitefinity.Taxonomies.Model" %> | |
| <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit" Assembly="Telerik.Sitefinity" %> |
| public static class FeeValueShortcodeProcessor | |
| { | |
| /// <summary> | |
| /// Expands all FeeValue shortcodes in the specified text | |
| /// </summary> | |
| /// <param name="inputText">The input text.</param> | |
| /// <returns>String with replaced short code values</returns> | |
| public static string Expand(object inputText) | |
| { | |
| if (inputText == null) return string.Empty; |
| public static class RateValueShortcodeProcessor | |
| { | |
| /// <summary> | |
| /// Expands all RateValue shortcodes in the specified text | |
| /// </summary> | |
| /// <param name="inputText">The input text.</param> | |
| /// <returns>String with replaced short code values</returns> | |
| public static string Expand(object inputText) | |
| { | |
| if (inputText == null) return string.Empty; |