• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript ngx-cookie-service.CookieService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了TypeScript中ngx-cookie-service.CookieService的典型用法代码示例。如果您正苦于以下问题:TypeScript CookieService类的具体用法?TypeScript CookieService怎么用?TypeScript CookieService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了CookieService类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。

示例1:

      .then(data => {
        this.currSemester = data;
        this.studentInfoservice.getStudentinfoforRegistration1(this.currSemester.acaYear, this.currSemester.semester,this.cookie.get('loginID'))
          .then(data => {
            this.currStudent = data;
            console.log(this.currStudent);
            $("#stuFullName").text(this.currStudent.studentName);

          });
        this.studentInfoservice.getStudentAvaImage(this.cookie.get('loginID'))
          .then(data => {
            $("#smallPhoto").attr("src", "http://oms.saigontech.edu.vn/oms_app/Saigontech_College/student/image/" + data);
          });

        this.ESLClassService.getESLClassRegistered(this.currStudentID
          , this.currSemester.acaYear
          , this.currSemester.semester)
          .then(data1 => {
            console.log(data1);
            this.eslClassregistered = data1;
          });

        this.ESLClassService.getESLClassAvailable(this.currStudentID
          , this.currSemester.acaYear
          , this.currSemester.semester)
          .then(data2 => {
            console.log(data2);
            this.eslClassavailable = data2;
          });
      });
开发者ID:nguyenquan263,项目名称:SMS_System_Final,代码行数:30,代码来源:esl-registration.component.ts


示例2: ngOnInit

  ngOnInit() {


    this.studentInfoservice.getStudentinfoforRegistration(this.cookie.get('loginID'))
      .then(data => {
        this.currStudent = data;
       // console.log(this.currStudent);
        $("#stuFullName").text(this.currStudent.studentName);

      });
    this.studentInfoservice.getStudentAvaImage(this.cookie.get('loginID'))
      .then(data => {
        $("#smallPhoto").attr("src", "http://oms.saigontech.edu.vn/oms_app/Saigontech_College/student/image/" + data);
      });
    this.semesterService.getAcademicYear()
    .then(data => {
      this.academicYearInfo = data;
      
      this.semesterService.getSemesterInformation()
      .then(data1 => {
        console.log(data1);
        this.currSemester = data1;
        this.getAllClassStatus(data1.acaYear, data1.semester, '-1');
      });
    });


    

    
  }
开发者ID:nguyenquan263,项目名称:SMS_System_Final,代码行数:31,代码来源:class-status.component.ts


示例3:

      .then(data => {
        //get information of current semester.
        this.currSemester = data;
        console.log(this.currSemester);
        this.studentInfoservice.getStudentinfoforRegistration1(this.currSemester.acaYear, this.currSemester.semester, this.cookie.get('loginID'))
          .then(data => {
            //get information of current student.
            this.currStudent = data;
            console.log(this.currStudent);
            $("#stuFullName").text(this.currStudent.studentName);

          });
        this.studentInfoservice.getStudentAvaImage(this.cookie.get('loginID'))
          .then(data => {
            //push image to navbar.
            $("#smallPhoto").attr("src", "http://oms.saigontech.edu.vn/oms_app/Saigontech_College/student/image/" + data);
          });

        this.eslSEOIService.getESLSEOIQuestionList('0', data.acaYear, data.semester)
          .then(data1 => {
            //get question list of this ESL SEOI.
            console.log(data1);
            this.questions = data1;
          });
        
        this.eslSEOIService.getTeacherInfo(this.cookie.get('ESLteacherID'),this.cookie.get('ESLclassID'))
        .then(data2 => {
          //get teacher of this class.
          this.currInformation = data2;
          console.log(this.currInformation);
        });
      });
开发者ID:nguyenquan263,项目名称:SMS_System_Final,代码行数:32,代码来源:esl-seoi-valuation.component.ts


示例4: ngOnInit

 ngOnInit() {
   this.userToken = this.cookieService.get('userToken');
   if (!this.userToken) {
     this.userToken = uuid();
     const date = new Date();
     date.setTime(date.getTime() + (5000 * 24 * 60 * 60 * 1000));
     this.cookieService.set('userToken', this.userToken, date);
   }
 }
开发者ID:gsuveti,项目名称:primeng-material,代码行数:9,代码来源:dev-playground.component.ts


示例5: ngOnInit

 ngOnInit(){
     let pciParams = this.cookieService.get('payBillJson');
     this.cookieService.delete('payBillJson');
     let decodedString = decodeURI(pciParams).replace(new RegExp("%3A", 'g'),":").replace(new RegExp("%2C", 'g'),",")
     let paymentInfo = JSON.parse(decodedString);
     paymentInfo.nickName = this.replaceAll(paymentInfo.nickName,"+"," ");
     let paymentDate = this.replaceAll(paymentInfo.paymentDate,"%2F","/");
     this.store.dispatch(new billingTypes.UpdateCollectivePaymentInfo({paymentAmount:paymentInfo.paymentAmount,paymentDate}))
     this.store.dispatch(new billingTypes.SaveBankInfo(this.billingService.getBankInfoForStore(paymentInfo)))
     this.router.navigate(['/protected/customer/billing/paybill/collective/verify.htm'])
 }
开发者ID:bbachi,项目名称:Angular5Sample,代码行数:11,代码来源:pcitogme.component.ts


示例6: navigateToEvaluation

  //access the evaluation page.
  navigateToEvaluation(status: string, classID: string, teacherID: string){
    if (status == 'Incomplete'){
      // console.log(classID+" "+teacherID);]
      //push teacherid to cookie.
      this.cookie.set('ESLteacherID', teacherID);
      //push classid to cookie.
      this.cookie.set('ESLclassID', classID);
      this.router.navigateByUrl('/ESLSEOIEvaluation');

    }
      
  }
开发者ID:nguyenquan263,项目名称:SMS_System_Final,代码行数:13,代码来源:esl-seoi-listing.component.ts


示例7: ToggleCounty

    ToggleCounty(county: string) {
        var selectedCounties = this.cookieService.get(this.favouriteCountiesCookieKey);

        if (selectedCounties.indexOf(county) > -1) {
            selectedCounties = selectedCounties.replace(county + ' ', '');
        } else {
            selectedCounties += county + ' ';
        }

        this.indicators.forEach(indicator => indicator.performers.forEach(performer => performer.favourite = selectedCounties.indexOf(performer.county) > -1));

        this.cookieService.set(this.favouriteCountiesCookieKey, selectedCounties);

        this.LoadData();
    }
开发者ID:OvidiuCaba,项目名称:StatisticsRomania,代码行数:15,代码来源:performers.component.ts


示例8: addComment

  addComment(studentID: string, semester: string, acaYear: string, teacherID: string, classID: string, comment: string) {
    let newCommentSEOI = {
      studentID: studentID,
      acaYear: acaYear,
      Semester: semester,
      classID: classID,
      instructorID: teacherID,
      comment: comment
    }



    $.ajax({
      type: "POST",
      url: this.connectionLink.getConnection() + "/insertESLSEOICommentREST",
      data: newCommentSEOI,
      dataType: "text",
      headers: {
        'Authorization': 'Bearer ' + this.cookie.get('token')
      },
      cache: false,
      success: function (response) {
        // var notification0 = new PNotify({
        //   title: 'Notification: ',
        //   text: response
        // });
      },
      error: function (data) {
        console.log(data);
      }
    })


  }
开发者ID:nguyenquan263,项目名称:SMS_System_Final,代码行数:34,代码来源:esl-seoi-service.service.ts


示例9:

 this.rs.getCourseReviews(this.course.code).subscribe(data => { 
     this.reviews = data;          
     if (this.cs.get('c_id'))
         this.userReviewed = data
                     .find(review =>
                         review['reviewedBy'] == this.cs.get('c_id')) ? true : false; 
 })
开发者ID:teandrew,项目名称:pathFinder,代码行数:7,代码来源:reviews.component.ts


示例10: deleteESLClass

  deleteESLClass(studentID: string, acaYear: string, Semester: string, classCodes: string) {
    let classObject = {
      studentCode: studentID,
      acaYear: acaYear,
      Semester: Semester,
      ipAddress: "123",
      classCodes: classCodes,
    }


    $.ajax({
      type: "POST",
      url: this.connectionLink.getConnection()+"/deleteEslcourseREST",
      data: classObject,
      dataType: "text",
      headers: {
        'Authorization':'Bearer ' + this.cookie.get('token')
      },
      cache: false,
      success: function(response)
      {
        var notification0 = new PNotify({
          title: 'Notification: ',
          text: response
        });
      },
      error: function(data){
        alert(data);
      }
  })
  }
开发者ID:nguyenquan263,项目名称:SMS_System_Final,代码行数:31,代码来源:eslclass-service.service.ts



注:本文中的ngx-cookie-service.CookieService类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript ngx-facebook.FacebookService类代码示例发布时间:2022-05-25
下一篇:
TypeScript ngx-cookie.CookieService类代码示例发布时间:2022-05-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap