Showing posts with label controller in Angular JS. Show all posts
Showing posts with label controller in Angular JS. Show all posts

Tuesday, December 20, 2016

Which is the Front-end technologies for SharePoint Framework development?

Microsoft has clearly mentioned in their key notes, they are building the framework and it is related samples using KnockoutJs and ReactJs with Typescript. Since it is an open-source based development model, choosing the framework/technologies are completely our choices, based on our knowledge and requirements. Here I have listed out a few front-end technologies.
  1. Angular 1.x - https://angularjs.org/
  2. Angular 2 - https://angular.io/
  3. ReactJs - https://facebook.github.io/react/
  4. KnockoutJs - http://knockoutjs.com/
  5. Ember.Js - http://emberjs.com/
  6. Backbone.Js - http://backbonejs.org/
  7. Aurelia.io - http://aurelia.io/

Friday, August 26, 2016

Controller in Angular JS

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script>
angular.module('test', []).controller('menu', function($scope) {
    $scope.names = [
        {furit:'Orange',vegtable:'Drumstick'},
        {furit:'Apple',vegtable:'Ladyfinger'},
        {furit:'Grape',vegtable:'Bringal'}
    ];
});
</script>


<div ng-app="test" ng-controller="menu">

<ul>
  <li ng-repeat="x in names">
{{x.furit }}
  </li>
</ul>
<ul>
  <ol ng-repeat="x in names">
{{x.vegtable}}
  </ol>
</ul>
</div>