Search results for 2014 07 14 leverage scope creep depth tutorial angular js scope

Leverage Scope Creep! An in-depth tutorial on Angular.js Scope

by Jonathan Creamer

Jonathan Creamer walks through a tutorial on mastering “Scope” within Angular.js, from $rootScope down through scope within Controllers and Directives. By Jonathan Creamer Getting used to the concept of scope

How Kendo UI Uses Kendo UI To Build Angular Directives For Kendo UI

by Brian Rinaldi

Angular directive. Again, this is all about scale. How can we leverage Kendo UI to build Angular JS directives that won’t break when the library changes, and can grow with…

The Angular Way

by Nicolas Bevacqua

= greeter.greet(user.name); } — the Angular.js documentation Modules allow us to rewrite controllers in the following way: angular.module(‘myApp’).controller(‘loginCtrl’, [ ‘$scope‘, ‘dep1’, ‘dep2’, function ($scope, dep1, dep2) { ‘use strict’; //…

Real-World Best Practices for Building Angular.js Apps without Browserify or Require.js

by Jeff Dickey

concat = require(‘gulp-concat’) gulp.task(‘js‘, function () { gulp.src([‘src/**/module.js‘, ‘src/**/*.js‘]) .pipe(concat(‘app.js‘)) .pipe(gulp.dest(‘.’)) }) gulp.task(‘watch’, [‘js‘], function () { gulp.watch(‘src/**/*.js‘, [‘js‘]) }) This just defines a ‘gulp watch’ task we can call…

Easier Angular Directives with SweetJS

by Brian Rinaldi

none */; byref value; /* two-way angularjs bind */ byval color, max; /* one-way angularjs bind */ callback /* none */; … In the actual implementation, a Sweet Angle directive…

Understanding Scope and Context in JavaScript

by Ryan Morr

of that scope. JavaScript presently does not support block scope which is the ability to define a variable to the scope of an if statement, switch statement, for loop, or…

AngularJS: One Step at a Time

by Michael Crump

Started with Angular from Modern Web</title> <script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.0/angular.min.js”></script> </head> <body> <div> 21 / 3 = {{21 / 3}} </div> <div> 21 + 3 = {{21 + 3 }} </div> <div>…

Creating An Application With Sails.js, Angular.js and Require.js Part 3 – Angular.js Controllers

by Tyson Cadenhead

Tyson Cadenhead continues an article series about building an application with Sails.js, Angular.js and Require.js. This installment dives into building out the Angular.js Controllers. You can find Part 1 here…

Creating An Application With Sails.js, Angular.js and Require.js Part 2 – Adding Dependencies

by Tyson Cadenhead

angular‘: ‘//ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular‘, ‘jquery’: ‘//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min’, ‘bootstrap’: ‘//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min’ }, ‘shim’: { ‘angular‘: { ‘exports’: ‘angular‘ }, ‘bootstrap’: { ‘deps’: [‘jquery’] }, ‘socket.io’: { ‘exports’: ‘io’ }, ‘sails.io’: { ‘deps’: [‘socket.io’], ‘exports’: ‘io’…

Building an Angular List: Using ng-repeat

by David Posin

we attach our data as an object property of the scope it will be accessible to the view, which is our html. angular.module(‘repeatSample’, []) .controller(‘repeatController’, [‘$scope‘, function ($scope) { $scope.veggies…