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.
<div class="text-center" rn-carousel-indicators ng-if="prayers.length > 1" slides="prayers" rn-carousel-index="Id"></div> | |
<ul class="prayer-carousel" rn-carousel rn-carousel-controls rn-carousel-index="Id"> | |
<li ng-repeat="prayer in prayers track by prayer.Id"> | |
<div class="card prayer-card"> | |
<h2>{{ prayer.Name }}</h2> | |
<div class="card-divider prayer-stats"> | |
<span class="prayer-started"> | |
Started: {{ prayer.StartedAt | date:'M/d/yyyy' }} |
<%@ Control Language="C#" %> | |
<script type="text/C#" runat="server"> | |
public static class NavHelper | |
{ | |
/// <summary> | |
/// Returns the active class parameter if the current url contains the | |
/// path check specified. | |
/// </summary> | |
/// <param name="pathCheck"> |
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; |
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; |
<%@ 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" %> |
.fancy-layout { | |
background-color: bisque; | |
} | |
.test-layout li:before | |
{ | |
content: '✔'; | |
color: green; | |
margin-left: -1em; margin-right: .100em; | |
} |
<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> |
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'); |
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'), |
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.