Jack-fx - jack-fx.com - Jack-FX
General Information:
Latest News:
A brief steps using Grunt for a website ‘build’ 25 Aug 2013 | 12:28 pm
1. Install NodeJS 2. Install grunt and related libs npm install -g grunt-cli npm install -g grunt-init init (generate the package.json) npm init (Make sure you have the Gruntfile.js file) Installing G...
Pass data between controllers not use service in AngularJS 23 Aug 2013 | 07:25 am
var scope = angular.element("#another ctrl scope element id.").scope(); scope.plean_assign = some_value; and of course, the other way is using service.
orderBy in ngRepeat – AngularJS 22 Aug 2013 | 07:21 pm
// format: |orderby:’fieldName’:reverse
Developing angularJS website with yeoman 12 Aug 2013 | 10:19 am
1. Install NodeJS (including npm) download the msi installer 2. Install yeoman (This will install Grunt and Bower automatically.) npm install -g yo 3. with the AngularJS generator: npm install...
JavaScript cross domain support by add HTTP header 9 Aug 2013 | 10:19 am
Access-Control-Allow-Origin: * Access-Control-Allow-Headers: Origin,X-Requested-With,Content-Type Access-Control-Request-Method: GET,POST,PUT,OPTION,DELETE
angular.forEach 7 Aug 2013 | 12:15 pm
Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of a...
Services in AnguarJS 28 Jul 2013 | 11:23 pm
There are three functions for creating generic services, with different levels of complexity and ability: provider(name, Object OR constructor() ) A configurable service with complex creation logic. I...
Separating UI Responsibilities with Controllers in AngularJS 26 Jul 2013 | 11:21 am
Controllers have three responsibilities in your app: • Set up the initial state in your application’s model • Expose model and functions to the view (UI template) through $scope • Watch other parts of...
Check whether an item in a list in javascript(jQuery) 23 Jul 2013 | 12:00 pm
Check whether an item in a list/array if( $.inArray(item, list) < 0) console.log(‘not in the list’); //note: $.inArray(item, list) will return the index the item in the list(array)
Disable many controls in a panel in HTML 21 Jul 2013 | 07:11 am
<div> elements do not have a disabled attribute according to the HTML specification. The expected behavior is to prevent your markup from validating correctly. However, the new HTML5 specification all...