Skip to content

Instantly share code, notes, and snippets.

🙏
Compile. Please?

Caleb Latimer latimeks

🙏
Compile. Please?
  • RevSpring
  • Ann Arbor, Michigan
View GitHub Profile
@latimeks
latimeks / app.component.css
Created Nov 4, 2019
App 7: Reactive Forms
View app.component.css
.container {
margin-top: 30px;
}
.header{
text-decoration: underline;
margin-bottom: 30px;
}
.errorBlock{
View app.component.css
.special-event {
color: white;
padding: 3px;
margin: 5px;
}
@latimeks
latimeks / app.module.ts
Created Jul 23, 2018
App2 - Databinding
View app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import {MatInputModule} from '@angular/material/input';
import {MatButtonModule} from '@angular/material/button';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {MatCardModule} from '@angular/material/card';
import { AppComponent } from './app.component';
View app.component.html
<div class="container">
<div class="row">
<div class="col-xs-12">
<ol>
<li>Create two new Components (manually or with CLI): WarningAlert and SuccessAlert</li>
<li>Output them beneath each other in the AppComponent</li>
<li>Output a warning or success message in the Components</li>
<li>Style the Components appropriately (maybe some red/ green text?)</li>
</ol>
<p>Use external or internal templates and styles!</p>
View gist:95a378f0d23da36b13e5e178d38cd606

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@latimeks
latimeks / App.js
Created Jun 25, 2018
Mcdonalds menu crawl gist
View App.js
import React, { Component } from 'react';
import './App.css';
import axios from 'axios'
import MenuCombo from './menucombo'
const heading = "Enter a price cap here for recommendations"
class App extends Component {
constructor(props){
You can’t perform that action at this time.