Angular.js Scope

Angular.js Patterns you should follow

All over javascript we are filled with patterns. JAvascirpt patterns, Jquery patterns, And now angular patterns. So I found that these angular patterns will help me get into less trouble using angular down the road… Scope Pattern //Don’t do this app.controller(‘MyCtrl’, function($scope){ $scope.doStuff = function(){ //Really long function body }; }); //Do this instead var […]

About Richard Batista

Web engineer that loves creating amazing and cool apps. Check out my project at Jizie.com ad portfolio at richardbatista.com. Show your support by signing up to jizie.com. Thanks

Angular.js: Your Applications Configuration

If you come from a traditional backend language like C# or any backend language and use a MVC framework then your half way into understanding the logic of Angular.js. When building traditional (C#, RUBY) MVC applications you always have a config file. In C# ASP.net MVC you have a WebConfig file for exmaple. When building […]

About Richard Batista

Web engineer that loves creating amazing and cool apps. Check out my project at Jizie.com ad portfolio at richardbatista.com. Show your support by signing up to jizie.com. Thanks

Angular.js change ng-include template using jquery and $compile

Html: <div ng-include=”template.like”> </div> Controller.js controllers.controller(“Blog”, function($scope, $http, $compile ){ // we change the template in the html $($event.target).parent().attr(“ng-include”, “template.like”) // we then compile the html so angular can update the template var $container = $($event.target).parent(); $compile($container)($scope); }); About Richard BatistaWeb engineer that loves creating amazing and cool apps. Check out my project at Jizie.com […]

About Richard Batista

Web engineer that loves creating amazing and cool apps. Check out my project at Jizie.com ad portfolio at richardbatista.com. Show your support by signing up to jizie.com. Thanks

Angular.js Basics

Angular is based on Directives which are expressed as html tags, attributes and even css classes! Everything in angular is based on modulesĀ  or better yet we should base everything on modules when using angular. The best way to look at it is In angular a module is a scope of html code that you […]

About Richard Batista

Web engineer that loves creating amazing and cool apps. Check out my project at Jizie.com ad portfolio at richardbatista.com. Show your support by signing up to jizie.com. Thanks