Click here to Skip to main content
15,890,897 members
Home / Discussions / JavaScript
   

JavaScript

 
Questionjquery confirm dialogue box Pin
Member 1231770923-Mar-16 20:15
Member 1231770923-Mar-16 20:15 
AnswerRe: jquery confirm dialogue box Pin
Nathan Minier24-Mar-16 1:50
professionalNathan Minier24-Mar-16 1:50 
QuestionGroup by - Custom function Pin
NJdotnetdev22-Mar-16 3:19
NJdotnetdev22-Mar-16 3:19 
AnswerRe: Group by - Custom function Pin
Nathan Minier23-Mar-16 1:56
professionalNathan Minier23-Mar-16 1:56 
QuestionAngularJS view ng-grid not refreshing after ngDialog close. Pin
Stephen Holdorf14-Mar-16 5:44
Stephen Holdorf14-Mar-16 5:44 
AnswerRe: AngularJS view ng-grid not refreshing after ngDialog close. Pin
Nathan Minier16-Mar-16 1:54
professionalNathan Minier16-Mar-16 1:54 
QuestionAngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Tridip Bhattacharjee8-Mar-16 1:37
professionalTridip Bhattacharjee8-Mar-16 1:37 
AnswerRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Nathan Minier16-Mar-16 2:15
professionalNathan Minier16-Mar-16 2:15 
If you're just starting with Angular, you don't need this function. This is to load a different Angular application, which has some very specific use cases, but is not something you should worry about as yet.

The flow for getting Angular up in a page is:
  1. Add an ng-app attribute to the html tag
    HTML
    <html ng-app="myApp">
  2. Have a script file that defines myApp
    JavaScript
    angular.module('myApp',[]);
  3. Include the primary Angular script
  4. Include your script that defines 'myApp' (or have a script block that defines it, as below)
Here's a basic working sample:
HTML
<!DOCTYPE HTML>
<html ng-app="myApp">
<head>
  <title>My Angular App</title>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
  <script type="text/javascript">
  angular.module('myApp',[])
    .controller('myController',['$scope',function($scope){
       $scope.title = 'Welcome to MyApp!';
    }]);
  </script>
</head>
<body ng-controller="myController">
<h2>
{{title}}
</h2>
</body>
</html>

GeneralRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Tridip Bhattacharjee16-Mar-16 21:32
professionalTridip Bhattacharjee16-Mar-16 21:32 
GeneralRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Nathan Minier17-Mar-16 1:55
professionalNathan Minier17-Mar-16 1:55 
GeneralRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Tridip Bhattacharjee17-Mar-16 3:37
professionalTridip Bhattacharjee17-Mar-16 3:37 
GeneralRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Nathan Minier17-Mar-16 3:56
professionalNathan Minier17-Mar-16 3:56 
QuestionHow do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
tienich7-Mar-16 20:07
tienich7-Mar-16 20:07 
AnswerRe: How do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
Richard MacCutchan7-Mar-16 22:02
mveRichard MacCutchan7-Mar-16 22:02 
GeneralRe: How do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
tienich17-Mar-16 6:46
tienich17-Mar-16 6:46 
AnswerRe: How do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
Nathan Minier11-Mar-16 1:30
professionalNathan Minier11-Mar-16 1:30 
GeneralRe: How do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
tienich17-Mar-16 6:46
tienich17-Mar-16 6:46 
QuestionPhoneGap Pin
vivek rajavel2-Mar-16 23:23
vivek rajavel2-Mar-16 23:23 
SuggestionRe: PhoneGap Pin
Richard Deeming2-Mar-16 23:43
mveRichard Deeming2-Mar-16 23:43 
GeneralRe: PhoneGap Pin
vivek rajavel3-Mar-16 0:11
vivek rajavel3-Mar-16 0:11 
Questionng-grid wrap-text rows with verical scrolling Pin
Stephen Holdorf1-Mar-16 14:35
Stephen Holdorf1-Mar-16 14:35 
AnswerRe: ng-grid wrap-text rows with verical scrolling Pin
Stephen Holdorf2-Mar-16 13:48
Stephen Holdorf2-Mar-16 13:48 
GeneralRe: ng-grid wrap-text rows with verical scrolling Pin
Stephen Holdorf3-Mar-16 2:59
Stephen Holdorf3-Mar-16 2:59 
QuestionRotation functionality is not working in viewer Pin
Member 1235806428-Feb-16 19:10
Member 1235806428-Feb-16 19:10 
Questionif click on one hyperlink navigate another Page(It contains image map-Healight Perticualr location) Pin
Member 1131823316-Feb-16 21:00
Member 1131823316-Feb-16 21:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.