I have tried few tutorials.When i download that code and run on my machine 
it works fine.But when i try to integrate it with my web page it never 
responds.
For now i'm just using an simple web page which generates the title and 
contents from the java controller.js

*controller.js*
var society= angular.module('Myapp',[]);

society.controller('heading', function ($scope) {

  $scope.main="My app";
  $scope.portfolio="Portfolio Heading";
  $scope.dummy="Dummy Content"
  $scope.headings = [
    {'name': 'About','id':'about.html'},
    {'name': 'Service','id':'services.html'},
    {'name': 'Contact','id':'contact.html'},
    {'name': 'Portfolio','id':'portfolio-1-col.html'},
    {'name': 'Blog','id':'blog-post.html'}
  ];

$scope.datas=[
  {'top':'Dummy','content':'This is Dummy too'},
  {'top':'Dummy','content':'This is Dummy too'},
  {'top':'Dummy','content':'This is Dummy too'}
];
  $scope.slides=[
    {'text':'Text','caption':'Caption'}];

});

*My Html*
<!DOCTYPE html>
<html lang="en" ng-app="Myapp" ng-controller="heading" >

<head>
 <script src="bower_components/angular/angular.js"></script>
  <script src="js/controllerss.js"></script>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>{{main}}</title>

    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="css/modern-business.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="font-awesome-4.1.0/css/font-awesome.min.css" 
rel="stylesheet" type="text/css">

</head>
<body>
    <!-- Navigation -->
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation" >
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" 
data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">{{main}}</a>
            </div>
            <!-- Collect the nav links, forms, and other content for 
toggling -->
            <div class="collapse navbar-collapse" 
id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li ng-repeat="heading in headings">
                        <a href="{{heading.id}}">{{heading.name}}</a>
                    </li>
                    <li>
                        <a href="#" ng-click="launch()">Login</a>
                    </li>
                        </ul>
                    </li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container -->
    </nav>
.....</html>

*How to show dialog on clicking login link.*

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to