RcBuilder@walla.com
call centre: 054-5614020

angular modules

Posted by: RcBuilder  /   Category: AngularJS / Config / Model / module / Routing   /   No Comments
26
Jan
2016

angular modules you can refer to module as a container or a namespace it's recommended to bind a module to your page and turn it to some sort of an application you can add config to each module and then add a routes mechanism to it bind a page to specific module - to bind a page to a specific.

Read more

Angular module dependency

Posted by: RcBuilder  /   Category: $http / $location / AngularJS / Config / Controllers / Data Providers / Directives / Factories / Filters / Model / module / Routing / Services   /   No Comments
26
Jan
2016

Angular module dependency STEPS 1. create a module and add elements to it (directives, filters etc.) 2. add the js file where your module is defined to the application e.g: <script type="text/javascript" src="app/dependencies/some_module.js"></script> 3. add your module as a dependency to the current active module var my_module = angular.module('my_application', ); 4. that's it! use elements from your module in the current application Example -- some_module.js.

Read more

Angular basic Example

Posted by: RcBuilder  /   Category: $http / AngularJS / Config / Controllers / Data Bind / Data Providers / Directives / Events / Examples / Factories / Filters / Model / module / Routing / Services / Views   /   No Comments
27
Oct
2014

Angular basic Example index.htm <!doctype html> <html ng-app="my_application"> <head> <title>AngularJS</title> <style> body{ font: normal normal 400 12px/1.2em arial; background-color:#FFFFFE;} </style> </head> <body> <ul> <li> <a href="#users">Users</a> <ul> <li><a href="#users/Roby">Users1</a></li> <li><a href="#users/Shirly">Users2</a></li> </ul> </li> <li><a href="#products">Products</a></li> </ul> <!-- active view placeholder--> <div ng-view class="slide-animation"></div> <script type="text/javascript" src="angular.min.js"></script> <script type="text/javascript" src="angular-route.min.js"></script> <script type="text/javascript" src="angular-animate.min.js"></script> <script type="text/javascript" src="app/config.js"></script> <script type="text/javascript" src="app/factories/products.js"></script> <script type="text/javascript" src="app/factories/users.js"></script> <script type="text/javascript" src="app/controllers/products.js"></script> <script type="text/javascript" src="app/controllers/users.js"></script> <script type="text/javascript" src="app/directives/global.js"></script> <script type="text/javascript" src="app/directives/products.js"></script> <script type="text/javascript" src="app/filters/global.js"></script> <script type="text/javascript" src="app/filters/products.js"></script> <script type="text/javascript" src="app/app.js"></script> </body> </html> app.js // define the page as application (module is a.

Read more

AngularJS Routing

Posted by: RcBuilder  /   Category: AngularJS / Config / Controllers / Directives / Routing / Views   /   No Comments
26
Oct
2014

AngularJS Routing * the routes definition performed via the module.config built-in faction * the route provider injected automatically by the angularJS engine as an argument called $routeProvider, use this argument to extract the requested view and match the matching route * the route defines for each url what controller to use and which template to load notice! to prevent duplicates you can.

Read more
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים