lab.naminsik
  • Javascript, jQuery
  • Reactjs
  • React Native
  • iOS
  • Android
  • AWS
  • Server
  • Html, CSS
  • Php
  • asp .net
  • SQL
  • Word Press
search
keywords
  • Angularjs 2016‧09‧08

    스코프 데이터 html로 바인딩하기

    예를 들어 $scope.text1 = '<h3>제목</h3>';라고 있고 dom에서 {{text1}} 하면 바로 <h3>제목</h3>가 노출된다.이를 html로 적용시키려면 아래와 같이 만들어야한다. 방법 1. 헤더에서 angular-sanitize 를 불러와준다.  <script src="/angular-1.5.8/angular-sanitize.min.js"></script>  모듈에 ngSaitize를 넣어준다. var app = angular.module('모듈이름',['ngRoute','ngAnimate','ngSanitize'], function($httpProvider){ });  이제 준비가 되었다. dom에는 아래와 같이 넣어준다. <p ng-bind-html="text1"></p> 그럼 제대로 데이터가 html로 바인딩 된 것을 확인할 수 있다. 방법 2. […]

popular

  • css - 크롬 position fixed 버그 해결 방법
  • 화면 안꺼지게 설정
  • Lightsail FTP 서버 구동, vsftpd + filezilla SFTP 연결 아니고 Keyfile 없이 접속
  • [회고] Github Actions가 갑자기 안된다. (Waiting for a runner to pick up this job…)
  • 리액트 네이티브 - 웹뷰에 유저 에이전트 수정하기 (iOS, Android)
  • TOYOTA KOREA website renewal
  • jQuery 플러그인 - 크로스 도메인 ajax로 가져오기
  • jQuery - a 태그의 href 값 변경하기
  • 앵귤러js 공부하기 좋은 사이트 모음(계속 업뎃)
  • Missing write access to /usr/local/lib/node_modules

comment

  • 감사합니다!
  • 감사합니다~
  • 잘 해결 되셨다니 다행입니다!...
  • 정말 감사합니다. 덕분에 해결했습니다!...
  • 유용한정보 대단히 감사합니다....