Angular JS Learning

Angular Basic

 
  MVC pattern in AngulaJS
 
 
 //defining module
 var app=angular.module(“app”,[]);
   
 //defining controller
 app.controller(‘Ctrl’, function ($scope)
    {
 
  //defining book’s authors model
  var bookAuthors=[“Leardershiop”,”Human”]

  //defining book viewmodel
  $scope.books = { id: ‘ABXY01’, name: ‘Welcome to this blog’,
  authors: bookAuthors}
 });

 

  

     

  

  

     

  

  

     

  

 </table

Published by arjunpremier

Software Engineer, Blogger,

2 thoughts on “Angular JS Learning

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Design a site like this with WordPress.com
Get started
Book Id :
Name :
Authors :