mirror of
https://github.com/Raghu-Ch/TurtleFactsQuiz.git
synced 2026-02-10 11:33:01 -05:00
dependency injection in angular /factories #services
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
</h3>
|
||||
</div>
|
||||
<!-- Hook on the controller for this view and specify when to show it using ng-hide -->
|
||||
<div ng-controller = "listCtrl as list" ng-hide = "list.quizActive">
|
||||
<div ng-controller = "listCtrl as list" ng-hide = "list.quizMetrics.quizActive">
|
||||
<form class = "form-inline well well-sm clearfix">
|
||||
<span class = "glyphicon glyphicon-search"></span>
|
||||
<input type="text" placeholder ="search" class="form-control" ng-model = "list.search">
|
||||
@@ -87,6 +87,11 @@
|
||||
</div> <!-- modal markup ends -->
|
||||
|
||||
</div> <!-- container -->
|
||||
|
||||
<!-- quizCtrl -->
|
||||
<div ng-controller = "quizCtrl as quiz" ng-show ="quiz.quizMetrics.quizActive">
|
||||
<p>Work hard bro u will get it </p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- third party scripts -->
|
||||
<!-- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-rc.2/angular.min.js"></script> -->
|
||||
@@ -96,5 +101,7 @@
|
||||
<!-- application scripts -->
|
||||
<script src ="js/app.js"></script>
|
||||
<script src ="js/controllers/list.js"></script>
|
||||
<script src ="js/controllers/quiz.js"></script>
|
||||
<script src ="js/factories/quizmetrics.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user