Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function newPostJobCtrl($scope,toastr, $rootScope, $location, $routeParams, $sessionStorage, $http, $window, HackerRank, md5) {
- $scope.WorkTypeoptions = [{
- name: 'Full Time'
- }, {
- name: 'Part Time'
- }, {
- name: 'Casual'
- }, {
- name: 'Temp'
- }, {
- name: 'Contract'
- }];
- /* ------------------------------------- These are the interview packages ------------------------- */
- /* for sales and retail - store manager */
- $scope.storeManagerPackageName = 'Store Manager';
- $scope.storeManagerVideoInterview = [
- {Question: 'How would you teach a colleague how to close the register?', fromPackage: true},
- {Question: 'What’s the most important decision you make every day as a store manager?', fromPackage: true},
- {Question: 'What is your opinion on being friends with your coworkers?', fromPackage: true},
- {Question: 'What would you do if you had an employee who was frequently late?', fromPackage: true},
- {Question: 'A product is selling well at our competitors’ stores but not at our store. Why do youthink this is?', fromPackage: true}
- ]
- /* For UX Designer */
- $scope.UXDesignerPackageName = 'UX Designer';
- $scope.UXDesignerVideoInterview = [
- {Question: 'Talk to us about your studies. Have you studied design?', fromPackage: true},
- {Question: 'Do you specialise in wireframing and functionality design, or graphic design? Whichdo you prefer?', fromPackage: true},
- {Question: 'How would you define user experience UX design?', fromPackage: true},
- {Question: 'Tell us a bit about how you undertake user testing?', fromPackage: true},
- {Question: 'How do you decide when a design is done?', fromPackage: true}
- ]
- /* For UI Designer */
- $scope.UIDesignerPackageName = 'UI Designer';
- $scope.UIDesignerVideoInterview = [
- {Question: 'Do you have a side project you’d like to talk to us about?', fromPackage: true},
- {Question: 'What kind of usability testing methods have you applied in your projects?', fromPackage: true},
- {Question: 'How would you define user interface UI design?', fromPackage: true},
- {Question: 'Can you describe a time when the requirements changed in the middle of a projectand how you handled that?', fromPackage: true},
- {Question: 'How do you decide when a design is done?', fromPackage: true}
- ]
- /* For Front End Web Developer */
- $scope.FrontEndPackageName = 'Front End Web Developer';
- $scope.FrontEndVideoInterview = [
- {Question: 'Which HTTP status codes classes are used to designate success, client error andserver error respectively?', fromPackage: true},
- {Question: 'When would you use GET and POST requests?', fromPackage: true},
- {Question: 'What can you do to improve page performance?', fromPackage: true},
- {Question: 'Describe a project you have previously worked on.', fromPackage: true},
- {Question: 'Describe the same-origin policy as part of the web browser security model. Give acouple of practical limitations it may pose.', fromPackage: true}
- ]
- /* For Java Developer */
- $scope.JavaDeveloperName = 'Java Developer';
- $scope.JavaDeveloperVideoInterview = [
- {Question: 'Is Java a statically or dynamically typed language?', fromPackage: true},
- {Question: 'What is JVM? Why is Java called the ‘Platform Independent ProgrammingLanguage’?', fromPackage: true},
- {Question: 'What do we mean by polymorphism, inheritance and encapsulation?', fromPackage: true},
- {Question: 'What is the difference between an abstract class and an interface and when would you use one over the other?', fromPackage: true},
- {Question: 'Describe a Java-related project you have previously worked on.', fromPackage: true}
- ]
- /* For Data Scientist (Analysis) */
- $scope.DataScientistAnalysisPackageName = 'Data Scientist (Analysis)';
- $scope.DataScientistAnalysisVideoInterview = [
- {Question: 'What is a confidence interval and why is it useful?', fromPackage: true},
- {Question: 'What is the difference between statistical independence and correlation?', fromPackage: true},
- {Question: 'What is conditional probability? What is Bayes’ Theorem? Why is it useful in practice?', fromPackage: true},
- {Question: 'How do we know if we have collected enough data to train a model?', fromPackage: true},
- {Question: 'Explain why we have training, test and validation data sets and how they are used effectively?', fromPackage: true}
- ]
- /* For Data Scientist (Coding) */
- $scope.DataScientistCodingName = 'Data Scientist (Coding)';
- $scope.DataScientistCodingVideoInterview = [
- {Question: 'How would you train and deploy a logistic regression model? A recommender system?', fromPackage: true},
- {Question: 'How would you sort a large list of numbers?', fromPackage: true},
- {Question: 'What is hashing? Give an example of when you might want to use it', fromPackage: true},
- {Question: 'Can you perform logistic regression with Excel? If yes, how can it be done? Would the result be good?', fromPackage: true},
- {Question: 'What is dynamic programming? What is recursion?', fromPackage: true}
- ]
- /* For Senior Ruby Developer */
- $scope.SeniorRubyDeveloperName = 'Senior Ruby Developer';
- $scope.SeniorRubyDeveloperVideoInterview = [
- {Question: 'What constitutes a good unit test and what a functional one?', fromPackage: true},
- {Question: 'How would you sort a large list of numbers in Ruby?', fromPackage: true},
- {Question: 'How is a block different from a Proc?', fromPackage: true},
- {Question: 'When do you think is the best time in a project’s lifecycle, to set up its test infrastructure?', fromPackage: true},
- {Question: 'What do you expect to find in a regression test suite and why?', fromPackage: true}
- ]
- /* For Junior Accountant */
- $scope.JuniorAccountantName = 'Junior Accountant';
- $scope.JuniorAccountantVideoInterview = [
- {Question: 'Describe your familiarity with accounting standards such as FASB and GAAP', fromPackage: true},
- {Question: 'How would you set up an internal control system for processing invoices? Which accounting software programs have you used?', fromPackage: true},
- {Question: 'How do you stay motivated while doing repetitive tasks? Describe an accounting process that you developed or improved.', fromPackage: true},
- {Question: 'When do you think is the best time in a project’s lifecycle, to set up its test infrastructure?', fromPackage: true},
- {Question: 'What are your goals? Why these goals and how do you plan to meet them?', fromPackage: true}
- ]
- $scope.totalInterviewPackages = [
- {"name": 'Store Manager', "packages": [
- {VideoInterview: $scope.storeManagerVideoInterview},
- {name: 'Store Manager'}
- ] },
- {"name": 'UX Designer', "packages": [
- {VideoInterview: $scope.UXDesignerVideoInterview},
- {name: 'UX Designer'}
- ] },
- {"name": 'UI Designer', "packages": [
- {VideoInterview: $scope.UIDesignerVideoInterview},
- {name: 'UI Designer'}
- ] },
- {"name": 'Front End Web Developer', "packages": [
- {VideoInterview: $scope.FrontEndVideoInterview},
- {name: 'Front End Web Developer'}
- ] },
- {"name": 'Java Developer', "packages": [
- {VideoInterview: $scope.JavaDeveloperVideoInterview},
- {name: 'Java Developer'}
- ] },
- {"name": 'Data Scientist (Analysis)', "packages": [
- {VideoInterview: $scope.DataScientistAnalysisVideoInterview},
- {name: 'Data Scientist (Analysis)'}
- ] },
- {"name": 'Data Scientist (Coding)', "packages": [
- {VideoInterview: $scope.DataScientistCodingVideoInterview},
- {name: 'Data Scientist (Coding)'}
- ] },
- {"name": 'Senior Ruby Developer', "packages": [
- {VideoInterview: $scope.SeniorRubyDeveloperVideoInterview},
- {name: 'Senior Ruby Developer'}
- ] },
- {"name": 'Junior Accountant', "packages": [
- {VideoInterview: $scope.JuniorAccountantVideoInterview},
- {name: 'Junior Accountant'}
- ] }
- ];
- $scope.$storage = $sessionStorage;
- $scope.interviewDescription = '';
- $scope.changeInterviewPackage = function (type){
- toastr.success('video interview questions successfully updated', 'Questions Updated');
- $scope.interviewPackage = type;
- for (var i=0; i<$scope.totalInterviewPackages.length; i++){
- if($scope.totalInterviewPackages[i].name == $scope.interviewPackage){
- console.log($scope.totalInterviewPackages[i].packages[0]);
- console.log($scope.totalInterviewPackages[i].packages[0].VideoInterview);
- $scope.CustomQuestions = $scope.totalInterviewPackages[i].packages[0].VideoInterview;
- for( var x =0; x<$scope.CustomQuestions.length; x++){
- if($scope.CustomQuestions[x].fromInterview ==true){
- $scope.CustomQuestions.splice($scope.CustomQuestions.indexOf($scope.CustomQuestions[x]), 1);
- }
- }
- // $scope.nameIntern = $scope.interviewPackage;
- }
- }
- }
- $scope.statesRegionsList = $rootScope.statesRegions;
- $scope.saveJobToSession = function() {
- $scope.$storage.jobInProgress = [{
- name: $scope.nameIntern,
- employerName: $rootScope.EmployerName,
- location: $scope.Location,
- country: $scope.selectedCountry,
- state: $scope.selectedStatesRegion,
- suburb: $scope.Suburb,
- postcode: $scope.postcode,
- deadline: $scope.Deadline,
- startDate: $scope.startDate,
- industry: $scope.selectedIndustry,
- Remuneration: $scope.Remuneration,
- worktype: $scope.selectedOptionWorkType,
- Description: $scope.Description,
- CustomVideoQuestion: $scope.CustomQuestions,
- selectedTests: $scope.selectedHackerRankTests,
- suggested: $scope.selection,
- VideoDuration: $scope.toDoVideoTime,
- AptitudeQuestions: $scope.RealStudentTasks,
- ratings: $scope.ratings,
- comments: $scope.comments,
- multiple: $scope.RealMultiple,
- NumberCorrect: $scope.todoNumberCorrect,
- indeed: $scope.indeed,
- workible: $scope.workible,
- seek: $scope.seek,
- interviewDescription: $scope.interviewDescription,
- interviewPackage: $scope.interviewPackage
- }];
- }
- /* slide up and down for interview pages */
- $scope.technologyChevron= true;
- $scope.salesRetailChevron = true;
- $scope.accountingChevron = true;
- $scope.toggleInterviewPackages = function(type){
- if(type == 'technology'){
- $(".technology-list").slideToggle();
- $scope.technologyChevron = !$scope.technologyChevron;
- } else if(type == 'sales and retail'){
- $(".sales-and-retail-list").slideToggle();
- $scope.salesRetailChevron = ! $scope.salesRetailChevron;
- } else if(type == 'accounting'){
- $(".accounting-list").slideToggle();
- $scope.accountingChevron = !$scope.accountingChevron;
- }
- };
- $scope.toStepOne = function() {
- $location.path('/post-job-step-one');
- $scope.saveJobToSession();
- };
- $scope.toStepTwo = function() {
- $location.path('/post-job-step-two');
- $scope.saveJobToSession();
- };
- $scope.toStepThree = function() {
- $location.path('/post-job-step-three');
- $scope.saveJobToSession();
- };
- $scope.toStepFour = function() {
- $location.path('/post-job-step-four');
- $scope.saveJobToSession();
- };
- $scope.jobInProgress = $scope.$storage.jobInProgress || [{}];
- $scope.ButtonSubmitted = 'false';
- $scope.submitted = false;
- // Step one variables
- $scope.nameIntern = $scope.jobInProgress[0].name || '';
- $scope.Location = $scope.jobInProgress[0].location || '';
- $scope.Description = $scope.jobInProgress[0].Description || '';
- $scope.Deadline = $scope.jobInProgress[0].deadline || '';
- $scope.Remuneration = $scope.jobInProgress[0].Remuneration || '';
- $scope.WorkType = $scope.jobInProgress[0].WorkType || '';
- $scope.Deadline = $scope.jobInProgress[0].deadline || '';
- $scope.FullPart = $scope.jobInProgress[0].FullPart || '';
- $scope.startDate = $scope.jobInProgress[0].startDate|| '';
- $scope.Suburb = $scope.jobInProgress[0].suburb || '';
- $scope.postcode = $scope.jobInProgress[0].postcode || '';
- console.log($scope.jobInProgress[0].suburb);
- console.log($scope.jobInProgress[0].name);
- console.log( $scope.jobInProgress[0].country);
- console.log($scope.jobInProgress[0].state);
- console.log($scope.jobInProgress[0].WorkType);
- for ( var i=0; i<$rootScope.CountryList.length; i++){
- if($scope.jobInProgress[0].country ==undefined){
- $scope.jobInProgress[0].country = $rootScope.CountryList[13];
- }
- else if($scope.jobInProgress[0].country.name == $rootScope.CountryList[i].name){
- $scope.jobInProgress[0].country = $rootScope.CountryList[i];
- }
- }
- for ( var i=0; i<$rootScope.statesRegions.length; i++){
- if($scope.jobInProgress[0].state ==undefined){
- $scope.jobInProgress[0].state = $rootScope.statesRegions[0];
- }else if($scope.jobInProgress[0].state.name == $rootScope.statesRegions[i].name){
- $scope.jobInProgress[0].state = $rootScope.statesRegions[i];
- }
- }
- for ( var i=0; i< $rootScope.industryList.length; i++){
- if($scope.jobInProgress[0].industry ==undefined){
- $scope.jobInProgress[0].industry = $scope.industryList[0];
- }else if($scope.jobInProgress[0].industry.name == $rootScope.industryList[i].name){
- $scope.jobInProgress[0].industry = $rootScope.industryList[i];
- }
- }
- for ( var i=0; i<$scope.WorkTypeoptions.length; i++){
- if($scope.jobInProgress[0].worktype == undefined){
- $scope.jobInProgress[0].worktype = $scope.WorkTypeoptions[0];
- }else if($scope.jobInProgress[0].worktype.name == $scope.WorkTypeoptions[i].name){
- $scope.jobInProgress[0].worktype = $scope.WorkTypeoptions[i];
- }
- }
- $scope.selectedCountry = $scope.jobInProgress[0].country || $rootScope.CountryList[13];
- $scope.selectedStatesRegion = $scope.jobInProgress[0].state || $rootScope.statesRegions[0];
- $scope.selectedIndustry = $scope.jobInProgress[0].industry || $rootScope.industryList[0];
- $scope.selectedOptionWorkType = $scope.jobInProgress[0].worktype || $scope.WorkTypeoptions[0];
- // Step two questions
- $scope.todoNumberCorrect = $scope.jobInProgress[0].NumberCorrect;
- $scope.RealStudentTasks = $scope.jobInProgress[0].AptitudeQuestions || [];
- $scope.selectedHackerRankTests = $scope.jobInProgress[0].selectedTests || [];
- $scope.todoTextTasks = '';
- $scope.removeTasks = function(TaskObject) {
- $scope.RealStudentTasks.splice($scope.RealStudentTasks.indexOf(TaskObject), 1);
- };
- $scope.RealMultiple = $scope.jobInProgress[0].multiple || [];
- $scope.multiplequestion = '';
- $scope.questionA = '';
- $scope.questionB = '';
- $scope.questionC = '';
- $scope.questionD = '';
- $scope.correctAnswer = '';
- $scope.toggleMultiple = function(multiple) {
- if(multiple.displayPlus == true){
- multiple.displayPlus = false;
- } else {
- multiple.displayPlus = true;
- }
- $("." + multiple.uniqueClass).slideToggle();
- }
- $scope.hackerRankLinkName = 'Retreive HackerRank Tests';
- // Step three variables
- $scope.QuestionType = 0;
- $scope.AddOrEdit = 0;
- $scope.toDoVideoTime = $scope.jobInProgress[0].VideoDuration || 45;
- $scope.CustomQuestions = $scope.jobInProgress[0].CustomVideoQuestion || [];
- $scope.toDoVideoQuestions = '';
- /* rating video questions */
- $scope.ratings = $scope.jobInProgress[0].ratings || [];
- $scope.todoTextRatings = '';
- $scope.FormSubmitted = false;
- /* video comment questions */
- $scope.comments = $scope.jobInProgress[0].comments || [] ;
- $scope.todoTextComments = '';
- //Step four variables (integrations).
- $scope.indeed = $scope.jobInProgress[0].indeed || '';
- $scope.workible = $scope.jobInProgress[0].workible || '';
- $scope.seek = $scope.jobInProgress[0].seek || '';
- // create job functions
- $scope.submitForm = function() {
- if($scope.indeed =='indeed'){
- $scope.jobInProgress[0].indeed = 'indeed';
- }
- if($scope.workible == 'workible'){
- $scope.jobInProgress[0].workible = 'workible';
- }
- if($scope.seek == 'seek'){
- $scope.jobInProgress[0].seek = 'seek';
- }
- if ($rootScope.CurrentJobs == undefined) {
- $rootScope.CurrentJobs = [];
- }
- $scope.submitted = false;
- $http.post('CreateRealJob.php', {
- "data": $scope.jobInProgress
- }).
- success(function(data, status) {
- $rootScope.CurrentJobs.push({
- name: $scope.nameIntern,
- employerName: $rootScope.EmployerName,
- location: $scope.Location,
- country: $scope.selectedCountry.name,
- state: $scope.selectedStatesRegion.name,
- suburb: $scope.Suburb,
- deadline: $scope.Deadline,
- startDate: $scope.startDate,
- industry: $scope.selectedIndustry.name,
- Remuneration: $scope.Remuneration,
- worktype: $scope.selectedOptionWorkType.name,
- Description: $scope.Description,
- CustomVideoQuestion: $scope.CustomQuestions,
- suggested: $scope.selection,
- VideoDuration: $scope.toDoVideoTime,
- AptitudeQuestions: $scope.RealStudentTasks,
- ratings: $scope.ratings,
- comments: $scope.comments,
- multiple: $scope.RealMultiple,
- NumberCorrect: $scope.todoNumberCorrect,
- indeed: $scope.indeed,
- workible: $scope.workible,
- seek: $scope.seek,
- Students: [],
- selectedTests: $scope.selectedHackerRankTests
- });
- $scope.$storage = [];
- $sessionStorage.$reset();
- $rootScope.CurrentJobName = $scope.nameIntern;
- $rootScope.NoJobsPosted = false;
- if (_isNotMobile == false) {
- $location.path('current-jobs');
- } else {
- //console.log(data);
- $window.location.href = 'employer-tracker/' + data;
- }
- }).error(function(data, status) {
- $scope.data = data || "Request failed";
- $scope.status = status;
- });
- };
- // fruits
- $scope.fruits = ['What are your strengths?', 'Tell me about an accomplishment you are most proud of.', 'Tell me about a time you made a mistake.', 'Tell me how you handled a difficult situation.',
- 'Tell me about a time when you disagreed with your boss.', 'What are some of your leadership experiences?', 'What can you offer us that someone else can not?',
- 'Describe yourself.'
- ];
- // http://www.forbes.com/sites/jacquelynsmith/2013/01/11/how-to-ace-the-50-most-common-interview-questions/
- // selected fruits
- $scope.selection = $scope.jobInProgress[0].suggested || [];
- $scope.AddToVideo = function() {
- if ($scope.toDoVideoQuestions != '' && ($scope.selection.length + $scope.CustomQuestions.length) < 10) {
- $scope.CustomQuestions.push({
- Question: $scope.toDoVideoQuestions,
- Video_intern: $routeParams.id
- });
- $scope.toDoVideoQuestions = '';
- }
- };
- $scope.PreEdit = function(Custom) {
- $scope.toDoVideoQuestions = Custom.Question;
- $scope.QuestionIndex = $scope.CustomQuestions.indexOf(Custom);
- $scope.AddOrEdit = 1;
- };
- $scope.EditVideo = function() {
- $scope.CustomQuestions[$scope.QuestionIndex] = {
- Question: $scope.toDoVideoQuestions
- };
- $scope.toDoVideoQuestions = '';
- $scope.AddOrEdit = 0;
- };
- $scope.CancelEdit = function() {
- $scope.toDoVideoQuestions = '';
- $scope.AddOrEdit = 0;
- $scope.QuestionIndex = -1;
- };
- $scope.DeleteQuestion = function(Custom) {
- $scope.CustomQuestions.splice($scope.CustomQuestions.indexOf(Custom), 1);
- };
- $scope.SuggestedHeader = function() {
- if ($scope.QuestionType == 1) {
- return 'resp-tab-item resp-tab-active';
- } else {
- return 'resp-tab-item';
- }
- };
- $scope.CustomHeader = function() {
- if ($scope.QuestionType == 0) {
- return 'resp-tab-item resp-tab-active';
- } else {
- return 'resp-tab-item';
- }
- };
- // toggle selection for a given fruit by name
- $scope.toggleSelection = function toggleSelection(fruitName) {
- var idx = $scope.selection.indexOf(fruitName);
- // is currently selected
- if (idx > -1) {
- $scope.selection.splice(idx, 1);
- }
- // is newly selected
- else {
- if (($scope.selection.length + $scope.CustomQuestions.length) < 10) {
- $scope.selection.push(fruitName);
- }
- }
- };
- $scope.addTodoMultiple = function() {
- console.log('testing should work');
- console.log($scope.correctAnswer);
- if ($scope.multiplequestion != '' && $scope.questionA != '' && $scope.questionB != '' && $scope.questionC != '' && $scope.questionD != '' && $scope.correctAnswer != '') {
- $scope.str = md5.createHash($scope.multiplequestion);
- $scope.RealMultiple.push({
- question: $scope.multiplequestion,
- questionA: $scope.questionA,
- questionB: $scope.questionB,
- questionC: $scope.questionC,
- questionD: $scope.questionD,
- correctAnswer: $scope.correctAnswer,
- displayPlus: true,
- uniqueClass: $scope.str
- });
- $scope.multiplequestion = '';
- $scope.questionA = '';
- $scope.questionB = '';
- $scope.questionC = '';
- $scope.questionD = '';
- $scope.correctAnswer = '';
- }
- };
- $scope.getHackerRankTests = function() {
- $scope.hackerRankLinkName = "Retreiving ...";
- $scope.retreiving = true;
- $scope.hackerRankTokenMessage = null;
- HackerRank.getTests($rootScope.UserId).then(function(response) {
- $scope.hackerRankLinkName = "Retreive HackerRank Tests";
- $scope.retreiving = false;
- if (response.data.data != null) {
- $scope.tests = response.data.data.filter(function(el, index, arr) {
- for (var i = 0; i < $scope.selectedHackerRankTests.length; i++) {
- if ($scope.selectedHackerRankTests[i].test_id === el.id) {
- return false;
- }
- }
- return true;
- });
- } else {
- $scope.tests = response.data.data;
- }
- if ($scope.tests == null) {
- HackerRank.getAccount($rootScope.UserId).then(function(response) {
- $scope.hackerRankAccessToken = response.data.access_token;
- if (!$scope.hackerRankAccessToken) {
- $scope.hackerRankTokenMessage = "Access Token Issue";
- } else {
- $scope.hackerRankTokenMessage = "No Tests Found";
- }
- console.log($scope.hackerRankTokenMessage);
- });
- }
- });
- };
- $scope.addHackerRankTest = function(test) {
- $scope.selectedHackerRankTests.push({
- url: test.url,
- test_id: test.id,
- name: test.name,
- questions_count: test.questions_count,
- duration: test.duration
- });
- $scope.tests = $scope.tests.filter(function(element, index, array) {
- if (element.id === test.id) {
- return false;
- } else {
- return true;
- }
- });
- };
- $scope.removeHackerRankTest = function(test) {
- if ($scope.tests)
- $scope.tests.push({
- url: test.url,
- id: test.test_id,
- name: test.name,
- questions_count: test.questions_count,
- duration: test.duration
- });
- $scope.selectedHackerRankTests = $scope.selectedHackerRankTests.filter(function(element, index, array) {
- if (element.test_id === test.test_id) {
- return false;
- } else {
- return true;
- }
- });
- }
- $scope.removeMultiple = function(TaskObject) {
- $scope.RealMultiple.splice($scope.RealMultiple.indexOf(TaskObject), 1);
- };
- $scope.addTodoTasks = function() {
- if ($scope.todoTextTasks != '') {
- $scope.RealStudentTasks.push({
- attribute_name: $scope.todoTextTasks
- });
- console.log($scope.RealStudentTasks[$scope.RealStudentTasks.length - 1]);
- $scope.todoTextTasks = '';
- }
- };
- $scope.removeRating = function(TaskObject) {
- $scope.ratings.splice($scope.ratings.indexOf(TaskObject), 1);
- };
- $scope.addTodoRatings = function() {
- if ($scope.todoTextRatings != '') {
- $scope.ratings.push({
- criteria: $scope.todoTextRatings
- });
- console.log($scope.ratings[$scope.ratings.length - 1]);
- $scope.todoTextRatings = '';
- }
- };
- $scope.removeComments = function(TaskObject) {
- $scope.comments.splice($scope.comments.indexOf(TaskObject), 1);
- };
- $scope.addTodoComments = function() {
- if ($scope.todoTextComments != '') {
- $scope.comments.push({
- criteria: $scope.todoTextComments
- });
- console.log($scope.comments[$scope.comments.length - 1]);
- $scope.todoTextComments = '';
- }
- };
- $scope.viewProfile = function() {
- $location.path('edit-business-profile');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement